Cmd

Captain Pooka

Daemon Poster
Messages
1,108
A long time ago I made this thing in CMD that did a bunch of stuff at the start up of your computer. But I totally forgot how! and my computer crashed so I cant look back...

I want it to open a program on start up, then open another program (easy uo) then start a macro within easyuo (a text document that I worte for a game)

I even forgot how I saved this to put it into the startup folder :p

Thanks

-Q

**edit

I notice you can't do something like this

"G:\Program Files\Razor\Razor.exe","G:\euox0098\euox.exe"
just opens the first one...
don't know.. help me!
 
Ok, screw the first post. Made the .bat file

I want it to be:

It will display my name and pass then you Press a key and start razor. Then it will say Press any key to start easy uo - you press a key and it starts easy uo.

----------------------------

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

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

---------------------------------------

Now my problem is you can open razor and it freezes there. In order to get the "Press any key to start easy uo." to come up you have to CLOSE RAZOR. Which is not what I want it to do.
How do I get it to let you open easy uo right after you open razor?

Thanks
-Q

BTW: I slapped the GOTOs in there in hopes that it would let me open euo right after razor... but that didn't work.
 
use the call command

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

ECHO PRESS ANY KEY TO START EASY UO.
PAUSE
call "G:\euox0098\euox.exe"
Pause
Exit
 
Hey, if anyone knows anything about CMD *talking to you root :D* Then can I add you to my msn? :D

Thanks root, ill see if it works when I get home
 
Alright root, that didn't fix the problem. The problem is that after it opens razor it stops.

I press a key and it starts up razor and doesn't come up with the

ECHO PRESS ANY KEY TO START EASY UO.
PAUSE

at all. Why is it just pausing on the opening of razor?

In order for it to continue to the

ECHO PRESS ANY KEY TO START EASY UO.
PAUSE

I have to CLOSe razor. Once again, I want to have them both open :D

Thanks

-q

I guess I could just write 2 different batch files.. but I need it all in the same one :D thanks
 
Here, save this and start it.

@ECHO OFF
TITLE Do you see my problem?
ECHO You might have to change the path to C:, I have mine on F:
ECHO.
:pAINT
ECHO Just press a damn key :D.
ECHO.
PAUSE
ECHO.
ECHO Now press another key and watch paint start.
ECHO.
ECHO Notice that it does not go on to paint2 UNLESS you close paint1.
ECHO.
PAUSE
CALL "F:\WINDOWS\system32\mspaint.exe"
ECHO.
ECHO ##############################################
GOTO PAINT2

:pAINT2
ECHO.
ECHO PRESS ANY KEY TO START PAINT2.
PAUSE
CALL "F:\WINDOWS\system32\mspaint.exe"
 
Make a shortcut to these programs in your system32 folder so you could use the run tool to start them.

like "Run>mspaint"

see how the below program functions as you wanted, only using paint instead.

Code:
@echo off
start mspaint
start mspaint
exit

-sam
 
Well, puting it into my sys32 folder worked for euox but for Razor it said it generated a problem that could not be handled...
 
Hmmmm, did you put the actual exe file in the system32 folder, or did you make a shortcut to it in the system32 folder?

Could you please post the error here? It may be that you need to copy over a couple of DLL files into the system32 folder.

-sam
 
Back
Top Bottom