Run Vbs File From Cmd
Name the batch hybrid Converter.bat and you can execute it directly as Converter from the cmd line. Sola Gsm Unlocker. Sure you can default ALL scripts to run from Cscript or Wscript, but if you want to execute your vbs as a windows script rather than a console script, this could cause some confusion later on. So just set your code to a batch file and run it directly.

Oct 28, 2008 I am trying to run a.vbs file, however I can't figure out how to execute it silently from a batch file, the reason I'm using a batch file is that I have. Original title: Run Vbs script with Cmd? I have a working VBS script to remove profiles but I want to make it auto run from a cd but the script needs syntax to run. Running VBScript and JScript files from the. Many scripts for computer management are more conveniently run from the command shell so that the user does not.
Going out on a limb I would suspect that the batch script requires its own parent folder to be the working directory. You can set the working directory accordingly by changing your code to this: Set shell = CreateObject('WScript.Shell') shell.CurrentDirectory = 'C: Users js Desktop createIndex' shell.Run 'createindex.bat' If the above doesn't help you need to provide more information about what should happen and what actually does happen. Running the external command/script in visible mode and without automatically closing CMD usually helps with debugging: shell.CurrentDirectory = 'C: Users js Desktop createIndex' shell.Run 'cmd /k createindex.bat', 1, True. I've 4 simple scripts for what kind of calls.