Go Back   Computer Forums > General Computing > Programming
Click Here to Login
Join Computer forums Today


Reply
 
Thread Tools Search this Thread Display Modes
 
Old 05-23-2007, 01:29 AM   #1
Daemon Poster
 
Captain Pooka's Avatar
 
Join Date: Oct 2006
Posts: 1,108
Default Cmd

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!
__________________

Captain Pooka is offline   Reply With Quote
Old 05-23-2007, 02:17 AM   #2
Daemon Poster
 
Captain Pooka's Avatar
 
Join Date: Oct 2006
Posts: 1,108
Default Re: Cmd

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.
__________________

Captain Pooka is offline   Reply With Quote
Old 05-23-2007, 03:03 AM   #3
Site Team
 
root's Avatar
 
Join Date: Mar 2004
Posts: 8,004
Default Re: Cmd

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
__________________
I didn’t fight my way to the top of the food chain to be a vegetarian…
Im sick of people saying 'dont waste paper'. If trees wanted to live, they'd all carry guns.
"The inherent vice of capitalism is the unequal sharing of blessings; The inherent vice of socialism is the equal sharing of miseries."
root is offline   Reply With Quote
Old 05-23-2007, 02:28 PM   #4
Daemon Poster
 
Captain Pooka's Avatar
 
Join Date: Oct 2006
Posts: 1,108
Default Re: Cmd

Hey, if anyone knows anything about CMD *talking to you root * Then can I add you to my msn?

Thanks root, ill see if it works when I get home
Captain Pooka is offline   Reply With Quote
Old 05-23-2007, 03:16 PM   #5
Daemon Poster
 
Captain Pooka's Avatar
 
Join Date: Oct 2006
Posts: 1,108
Default Re: Cmd

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

Thanks

-q

I guess I could just write 2 different batch files.. but I need it all in the same one thanks
Captain Pooka is offline   Reply With Quote
Old 05-23-2007, 05:34 PM   #6
Daemon Poster
 
Captain Pooka's Avatar
 
Join Date: Oct 2006
Posts: 1,108
Default Re: Cmd

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 .
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"
Captain Pooka is offline   Reply With Quote
Old 05-23-2007, 05:52 PM   #7
Baseband Member
 
Join Date: May 2007
Posts: 42
Send a message via AIM to yohed55
Default Re: Cmd

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
yohed55 is offline   Reply With Quote
Old 05-23-2007, 05:58 PM   #8
Daemon Poster
 
Captain Pooka's Avatar
 
Join Date: Oct 2006
Posts: 1,108
Default Re: Cmd

Ok, I will do that, but I still want to know how to make it work the other way

Thanks sam.
Captain Pooka is offline   Reply With Quote
Old 05-23-2007, 06:06 PM   #9
Daemon Poster
 
Captain Pooka's Avatar
 
Join Date: Oct 2006
Posts: 1,108
Default Re: Cmd

Well, puting it into my sys32 folder worked for euox but for Razor it said it generated a problem that could not be handled...
Captain Pooka is offline   Reply With Quote
Old 05-23-2007, 11:35 PM   #10
Baseband Member
 
Join Date: May 2007
Posts: 42
Send a message via AIM to yohed55
Default Re: Cmd

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
__________________

yohed55 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT -5. The time now is 12:41 PM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0