Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account



Photo

How to run vbs from cmd?

- - - - -

  • Please log in to reply
1 reply to this topic

#1
mikehall

mikehall
  • Member
  • 9 posts
  • Joined 24-September 03
I'm trying to figure out how to run the vbs from a cmd file. Specifically Paul365's quicklaunch script, but I think I'm having trouble with any vbs scripts. If I double click on a script, it works fine. However if I execute it from my install.cmd file then it opens the taskbar and start menu properties. Is there a certain command line to run vbs files from a cmd file?


How to remove advertisement from MSFN

#2
Viral

Viral
  • Member
  • 1 posts
  • Joined 11-December 03
You should be able to just do:

START /WAIT CScript <path>\<filename>.vbs //NoLogo

Where <path> and <filename> are filled in appropriately for your script.

I've noticed that depending on where you are executing your VBSes from, Windows decides it can't find START. If this is the case, use:

%windir%\system32\cmd.exe /C "START /WAIT CScript <path>\<filename>.vbs //NoLogo"

That will explicitly tell it where cmd is so it won't be silly and can find start.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users