Ese 0 Posted September 18, 2007 hey guyswhat i want to do is this:i want the script to ask me few Qs, then take the values from the Qs and put it in a cmd commandthe cmd command syntax is:makecoll.exe <file> <collection> <server> i want the <file> and <collection> values to be added with the input command by a user, is it possible?i tried: $file = InputBox("Script", "Enter File name and path(c:\filename.txt):", "") $coll = InputBox("Script", "Enter the new collection name:", "") Run(@ComSpec & " /k c:\makecoll.exe "$file" "$coll" vmsmsprm -U:nasulin")the script runs with no errors but the makecoll command uses $file and not the value it has in it... :ScheersEse Share this post Link to post Share on other sites
weaponx 16 Posted September 18, 2007 hey guys what i want to do is this: i want the script to ask me few Qs, then take the values from the Qs and put it in a cmd command the cmd command syntax is: makecoll.exe <file> <collection> <server> i want the <file> and <collection> values to be added with the input command by a user, is it possible? i tried: $file = InputBox("Script", "Enter File name and path(c:\filename.txt):", "") $coll = InputBox("Script", "Enter the new collection name:", "") Run(@ComSpec & " /k c:\makecoll.exe "$file" "$coll" vmsmsprm -U:nasulin") the script runs with no errors but the makecoll command uses $file and not the value it has in it... :S cheers Ese $file = InputBox("Script", "Enter File name and path(c:\filename.txt):", "") $coll = InputBox("Script", "Enter the new collection name:", "") Run(@ComSpec & ' /k c:\makecoll.exe "' & $file & '" "' & $coll & '" vmsmsprm -U:nasulin') Share this post Link to post Share on other sites
Ese 0 Posted September 18, 2007 Thanks alot for the quick answer Share this post Link to post Share on other sites