Hi everyone, I am hoping someone can help me. I Have written a VBS script which takes command line arguments and then uses these as the values for an SQL insert statement. Running this from command prompt as; cscript sabnzbd.vbs one two three four will then use the values one, two, three, four. So with this in mind a made a text file which says
However when I run this script it just hangs and in the history says "running script c:\sabnzbd.txt" and never works. Has anyone got any ideas what I am doing wrong.
Don't tell me you named your script "c:\sabnzbd.txt"
A command script should have a CMD extension, so "c:\sabnzbd.cmd".
Otherwise Windows won't know what to do with it.
If you're lucky it will start notepad.