Click here to Skip to main content
15,923,006 members
Home / Discussions / C#
   

C#

 
AnswerRe: Simple MultiThread question Pin
Luc Pattyn28-Jan-12 2:50
sitebuilderLuc Pattyn28-Jan-12 2:50 
AnswerRe: Simple MultiThread question Pin
BobJanova28-Jan-12 6:45
BobJanova28-Jan-12 6:45 
GeneralRe: Simple MultiThread question Pin
PozzaVecia28-Jan-12 9:50
PozzaVecia28-Jan-12 9:50 
QuestionConverting MySqlDateTime Pin
Ian_urquhart27-Jan-12 4:50
Ian_urquhart27-Jan-12 4:50 
AnswerRe: Converting MySqlDateTime Pin
Bernhard Hiller27-Jan-12 5:01
Bernhard Hiller27-Jan-12 5:01 
GeneralRe: Converting MySqlDateTime Pin
Ian_urquhart27-Jan-12 5:27
Ian_urquhart27-Jan-12 5:27 
AnswerRe: Converting MySqlDateTime Pin
PIEBALDconsult27-Jan-12 5:08
mvePIEBALDconsult27-Jan-12 5:08 
GeneralRe: Converting MySqlDateTime Pin
Ian_urquhart27-Jan-12 5:31
Ian_urquhart27-Jan-12 5:31 
GeneralRe: Converting MySqlDateTime Pin
Richard Andrew x6427-Jan-12 16:43
professionalRichard Andrew x6427-Jan-12 16:43 
GeneralRe: Converting MySqlDateTime Pin
PIEBALDconsult28-Jan-12 4:03
mvePIEBALDconsult28-Jan-12 4:03 
GeneralRe: Converting MySqlDateTime Pin
jschell28-Jan-12 4:39
jschell28-Jan-12 4:39 
GeneralRe: Converting MySqlDateTime Pin
PIEBALDconsult28-Jan-12 12:05
mvePIEBALDconsult28-Jan-12 12:05 
GeneralRe: Converting MySqlDateTime Pin
jschell28-Jan-12 13:54
jschell28-Jan-12 13:54 
QuestionSocket server handling MySQL queries from clients and return the response to them Pin
Islorvat27-Jan-12 4:48
Islorvat27-Jan-12 4:48 
AnswerRe: Socket server handling MySQL queries from clients and return the response to them Pin
Richard Andrew x6427-Jan-12 7:30
professionalRichard Andrew x6427-Jan-12 7:30 
AnswerRe: Socket server handling MySQL queries from clients and return the response to them Pin
SledgeHammer0127-Jan-12 13:25
SledgeHammer0127-Jan-12 13:25 
Questionconnecting external msSQL Pin
nuyts K27-Jan-12 4:41
nuyts K27-Jan-12 4:41 
AnswerRe: connecting external msSQL Pin
Eddy Vluggen27-Jan-12 6:11
professionalEddy Vluggen27-Jan-12 6:11 
Questiondotnetbar gauge control Pin
isang puntos27-Jan-12 4:36
isang puntos27-Jan-12 4:36 
AnswerRe: dotnetbar gauge control Pin
Wes Aday27-Jan-12 5:02
professionalWes Aday27-Jan-12 5:02 
GeneralRe: dotnetbar gauge control Pin
isang puntos28-Jan-12 1:35
isang puntos28-Jan-12 1:35 
QuestionExtracting data from Downloadstring Pin
CCodeNewbie27-Jan-12 3:29
CCodeNewbie27-Jan-12 3:29 
AnswerRe: Extracting data from Downloadstring Pin
Bernhard Hiller27-Jan-12 5:11
Bernhard Hiller27-Jan-12 5:11 
GeneralRe: Extracting data from Downloadstring Pin
CCodeNewbie27-Jan-12 5:52
CCodeNewbie27-Jan-12 5:52 
QuestionHow to pass variables from WPF (C#) to batch file Pin
bolbag27-Jan-12 2:49
bolbag27-Jan-12 2:49 
I have a simple WPF form that calls an external .VBS file. I am able to call the .VBS file from the WPF project without any issues. I would now like to pass a couple variables set in the WPF project to the .VBS file, but can't get this to work. Below is a simplified version of my C# code, and .VBS file.

Thanks in advance!

WPF/C# contents

Process scriptProc = new Process();
scriptProc.StartInfo.FileName = @"cscript";
string fName, lName;
fName "John "
lName = "Smith"
string qParams = fName  + lName;
scriptProc.StartInfo.Arguments = "c:\\PrepapreExcelReports.vbs %" + qParams + "%";
scriptProc.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
scriptProc.Start();
scriptProc.WaitForExit();
scriptProc.Close();


.VBS contents

VB
'test
dim aTest
aTest = qParams
msgbox("Hello " + aTest)

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.