Music Banter - View Single Post - The Official Computer Tech Support Thread
View Single Post
Old 06-27-2019, 01:49 PM   #2021 (permalink)
Stephen
I sleep in your hat
 
Stephen's Avatar
 
Join Date: Mar 2011
Location: Melbourne, Vic. Aus.
Posts: 1,846
Default

Anyone know much about vbscript? I'm running a shell script from a vbs file to redirect output to a log file

ie.
Set v_obj_shell = CreateObject("Wscript.Shell")
v_result = v_obj_shell.Run("command thingy > "some file.txt"", 0, True)



When I save the command I'm running to a text file and copy and paste it to the command line it works as expected and outputs the log file I'm after but when I run it from within the vbs I don't get a log file. Any thoughts on why this might be the case?
Stephen is offline   Reply With Quote