Captain Pooka
Daemon Poster
- Messages
- 1,108
It wont go on anyways unless I close the first program when it starts.... Make the paint thing work with using the CALL command.. and tell me how you did it
Option Explicit
Dim objShell
Set objShell = CreateObject("WScript.Shell")
WScript.Echo "Foo"
objShell.Run "C:\windows\system32\notepad.exe"
WScript.Echo "Bar"
objShell.Run "C:\windows\system32\mspaint.exe"
WScript.Quit
Option Explicit
Dim objShell
Set objShell = CreateObject("WScript.Shell")
objShell.Run("notepad")
WScript.Sleep 500
objShell.SendKeys "USERNAME"
objShell.SendKeys "{enter}"
objShell.SendKeys "PASSWORD"
WScript.Sleep 500
WScript.Echo "Press Any key to start Razor"
objShell.Run("G:\Program Files\Razor\Razor.exe")
WScript.Echo "Press any key to start Easy UO"
objShell.Run("G:\euox0098\euox.exe")
WScript.Quit
Option Explicit
Dim objShell
Set objShell = CreateObject("WScript.Shell")
WScript.Echo "Get off CF and get some work done :)"
objShell.Run "http://computerforums.org"
WScript.Quit
REM choice gives you 2 options in this case - either y or n
CHOICE/C:yn Are you sure you want to delete %1
IF ERRORLEVEL 2 GOTO :no
IF ERRORLEVEL 1 GOTO :yes
:yes
DEL %a
GOTO :end
:no
echo file %1 not deleted
GOTO :end
:end