prx984 Posted April 20, 2006 Share Posted April 20, 2006 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 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 Link to comment Share on other sites More sharing options...
gunsmokingman Posted April 20, 2006 Share Posted April 20, 2006 Try This The One after ),1 will open the window in it default size, other numbers to try are as followsZero = hides the windowTwo = start the window in the taskbarThe true means it will wait for it to finish running what ever you put in thereIf 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 Link to comment Share on other sites More sharing options...
prx984 Posted April 21, 2006 Author Share Posted April 21, 2006 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. anyway, thanks a lot!-brian Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now