I have a small program I'm attempting that passes on Variable to a switch needed by a .vbs script.
when the program runs it lists the name of the variable as opposed to the value the user types in.
the command line switch needed by the eventquery.vbs (a Microsoft script) requires the parameters to be in quotes. Of the 3 switches I use only one has a Variable I need to use for the Date.
Typing the exact syntax on the command line works, however using it from within VB with a user input box does not.
the command line to get the info I need is as follows
cscript eventquery.vbs \s servername /u domain\administrator /fi "Type eq error" /l system "type eq 6008" /fi "Datetime gt 01/01/06,01:01:00"
the part I get input from the user for is the Datetime. If I run this as above it works fine, if I make the Datetime property a user input variable for just the date part (not the time after the comma) the script returns the variable name and not the users input.
any guidance appreciated.