Cmd

:p 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 :D
 
sorry... made a mistake with that call command, that's pretty much just the same as writting the program name...


you should use that start command


@ECHO OFF
:RAZOR
ECHO PRESS ANY KEY TO START RAZOR.
ECHO Name: blah blah
ECHO PASS: blah blah
PAUSE
start "G:\Program Files\Razor\Razor.exe"

ECHO PRESS ANY KEY TO START EASY UO.
PAUSE
start "G:\euox0098\euox.exe"
Pause
Exit


I imagine that the problem with putting the Razor file in the sys32 folder was more to do with it's associated files that it want's to be local
 
alright you guys arn't getting my problem.

Copy all that and make a bat file but instead of razor and easy uo put in two different programs that yall have.

It's not that they wont start, it's that when razor opens it wont go on to the next part. I tried it with pain too and the same problem occurrs there also.
 
Here's a VBS file that does the equivalent:

Code:
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

Save that as a vbs file and see how you like it.


-sam
 
Couple of questions

Does VBscript stand for visual basic script?

And It cones up with Foo, the press ok and it says

Script: (path to where I saved it)
Line: 5
Char: 1
Error: The system cannot find the file specified.
Code: 80070002
Source: (null)
 
Yeah your files must be in a different directory sorry about that.

Try this on for size.

Code:
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

save that as a vbs again.

If you want to make it exit notepad automatically or print the username and password out in DOS, Let me know and I will fix it up.

-sam
 
Comes up with the same error when I press ok to start razor.

Script: F:\Documents and Settings\Quincy\My Documents\fsdgs.vbs
Line: 5
Char: 1
Error: The system cannot find the file specified.
Code: 80070002
Source: (null)
 
Code:
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

Lol sorry, made that a while ago.. sometimes works for me.. I put alot of messages before I open links when im trying to do work!

Put that in notepad and save as a .vbs file, and use that as a desktop shortcut :)


Is there a way to have a batch file open and have a list of programs to open? Then like, press 1 for paint, 2 for notepad etc?
 
Well yes there is for batch files, it is the choice command.
My computer doesn't have the CHOICE command and i'm to lazy to find it and download it.. although I figure it could fix all my problems :D feel free to post a link if you find it! That and TASKKILL :D

Code:
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

And for multiple you would just slap one of these in there

CHOICE/C:abcd choose a letter
IF ERRORLEVEL 4 GOTO choice_d
IF ERRORLEVEL 3 GOTO choice_c
IF ERRORLEVEL 2 GOTO choice_b
IF ERRORLEVEL 1 GOTO choice_a

and of couse you would give it a name like deletechoice.bat or whatever you want to do with it...


But I say again, you can post a link if you find a place to download the CHOICE command :D

-Q

And with your VBS script, I get the same error as before. I've tried opening it from different locations (documents, desktop, mycomp...) and I still get the same error.. I think if I do get the CHOICE command I can do it in a batch file :D

thanks!
-Q
 
Back
Top Bottom