Click here to Skip to main content
15,886,919 members
Home / Discussions / C#
   

C#

 
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)

AnswerRe: How to pass variables from WPF (C#) to batch file Pin
Wes Aday27-Jan-12 4:06
professionalWes Aday27-Jan-12 4:06 
Questionparameter Pin
messages27-Jan-12 1:00
messages27-Jan-12 1:00 
AnswerRe: parameter Pin
testy_proconsul27-Jan-12 1:21
testy_proconsul27-Jan-12 1:21 
QuestionCamera IEEE 1394 Firewire Pin
lukluz26-Jan-12 10:07
lukluz26-Jan-12 10:07 
AnswerRe: Camera IEEE 1394 Firewire Pin
Eddy Vluggen27-Jan-12 7:04
professionalEddy Vluggen27-Jan-12 7:04 
GeneralRe: Camera IEEE 1394 Firewire Pin
lukluz30-Jan-12 23:39
lukluz30-Jan-12 23:39 
GeneralRe: Camera IEEE 1394 Firewire Pin
Eddy Vluggen31-Jan-12 0:27
professionalEddy Vluggen31-Jan-12 0:27 
GeneralRe: Camera IEEE 1394 Firewire Pin
lukluz31-Jan-12 4:03
lukluz31-Jan-12 4:03 
GeneralRe: Camera IEEE 1394 Firewire Pin
Eddy Vluggen31-Jan-12 6:41
professionalEddy Vluggen31-Jan-12 6:41 
GeneralRe: Camera IEEE 1394 Firewire Pin
lukluz31-Jan-12 10:53
lukluz31-Jan-12 10:53 
GeneralRe: Camera IEEE 1394 Firewire Pin
Eddy Vluggen31-Jan-12 11:25
professionalEddy Vluggen31-Jan-12 11:25 
GeneralRe: Camera IEEE 1394 Firewire Pin
lukluz1-Feb-12 0:28
lukluz1-Feb-12 0:28 
GeneralNaming Question Pin
Tim Groven25-Jan-12 4:57
Tim Groven25-Jan-12 4:57 
GeneralRe: Naming Question Pin
Jonathan [Darka]25-Jan-12 5:14
professionalJonathan [Darka]25-Jan-12 5:14 
GeneralRe: Naming Question Pin
Pete O'Hanlon25-Jan-12 5:20
mvePete O'Hanlon25-Jan-12 5:20 
AnswerRe: Naming Question Pin
Ravi Bhavnani25-Jan-12 5:59
professionalRavi Bhavnani25-Jan-12 5:59 
GeneralRe: Naming Question Pin
Eddy Vluggen25-Jan-12 7:00
professionalEddy Vluggen25-Jan-12 7:00 

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.