Jump to content

Recommended Posts

Posted

i need a little bit of help with a vbscript, i need to call an application (i want to open a bat file) but i dont know how :blushing: im really not a programmer, i just want to try something to bug my brother with his comp cuz hes buggin me. so any help is apreciated thanks!

-brian


Posted

Try This

The One after ),1 will open the window in it default size, other numbers to try are as follows

Zero = hides the window

Two = start the window in the taskbar

The true means it will wait for it to finish running what ever you put in there

If you put false or leave it blank then then it will run and not wait for whatever

you put in the ("PATH_AND_NAME_TO_THE_CMD_OR_FILE_TO_RUN")

Dim Act
Set Act = CreateObject("Wscript.Shell")
Act.Run("PATH_AND_NAME_TO_THE_CMD_OR_FILE_TO_RUN"),1,TRUE

Posted

hey, thanks that worked. now i can bug my brother hehehehe. i made a script with a bunch of error messages and at the end it just going to shut down his computer, he doesnt know yet. :lol: anyway, thanks a lot!

-brian

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...