Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[help PLEASE] BAT file (I've searched)

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Acim
Grandmaster Cheater Supreme
Reputation: 0

Joined: 04 Jun 2007
Posts: 1948
Location: If anyone has a GMS DK and they don't need it I'll have it!!

PostPosted: Sat Jul 28, 2007 10:01 am    Post subject: [help PLEASE] BAT file (I've searched) Reply with quote

Whenever I run a bat file I made, it immediatly closes. Help?? Even a simple one made to just put the word "Hi" on the screen closes immediatly. Is it something wrong witht he code?:

echo ON
echo.
echo Hi
echo.

_________________
I'm alive and well, but I quit CEF for a while. Legitly playing since Novemberish 07. Starting hacking October 06.


Last edited by Acim on Sat Jul 28, 2007 10:26 am; edited 1 time in total
Back to top
View user's profile Send private message
Jani
Grandmaster Cheater
Reputation: 2

Joined: 29 Dec 2006
Posts: 804

PostPosted: Sat Jul 28, 2007 10:25 am    Post subject: Re: BAT file Reply with quote

Acim wrote:
Whenever I run a bat file I made, it immediatly closes. Help??

Add "pause" in the end of the file (without the quotation marks of course..).

Immediate closing of the window is a "feature." You can also try running your .bat from cmd prompt (Win+R->cmd->navigate to the cmd and run it.)
Back to top
View user's profile Send private message
Acim
Grandmaster Cheater Supreme
Reputation: 0

Joined: 04 Jun 2007
Posts: 1948
Location: If anyone has a GMS DK and they don't need it I'll have it!!

PostPosted: Sat Jul 28, 2007 10:28 am    Post subject: Re: BAT file Reply with quote

Jani wrote:
Acim wrote:
Whenever I run a bat file I made, it immediatly closes. Help??

Add "pause" in the end of the file (without the quotation marks of course..).

Immediate closing of the window is a "feature." You can also try running your .bat from cmd prompt (Win+R->cmd->navigate to the cmd and run it.)


Thanks. I added pause. It worked great. But of course I also turned echo off. +rep

_________________
I'm alive and well, but I quit CEF for a while. Legitly playing since Novemberish 07. Starting hacking October 06.
Back to top
View user's profile Send private message
Jani
Grandmaster Cheater
Reputation: 2

Joined: 29 Dec 2006
Posts: 804

PostPosted: Sat Jul 28, 2007 11:22 am    Post subject: Re: BAT file Reply with quote

Acim wrote:

Thanks. I added pause. It worked great. But of course I also turned echo off. +rep
"pause > nul" works too :) Thanks for the rep.
Back to top
View user's profile Send private message
--Pillboi--
Grandmaster Cheater Supreme
Reputation: 0

Joined: 06 Mar 2007
Posts: 1383
Location: I don't understand the question. Is this a 1 to 10 thing?

PostPosted: Sat Jul 28, 2007 11:34 am    Post subject: Reply with quote

Or if you don't want to have to press anything and want it to wait for a certain amount of time, you can always use:
Code:
@ping 127.0.0.1 -n 2 -w 1000 > nul

Replace 1000 with the amount of milliseconds you want it to wait for. This will wait for 1 second. Milli means a thousand, hence there are 1000 milliseconds in a second.
For example:
Code:
echo OFF
echo Hello
@ping 127.0.0.1 -n 2 -w 5000 > nul
echo I just waited for 5 seconds.

Would type "Hello", and then wait for 5 seconds, and then write "I just waited for 5 seconds".
It's not completely accurate, but it's pretty accurate. Wink

_________________

Enter darkness, leave the light, Here be nightmare, here be fright...
Earth and Water, Fire and Air. Prepare to meet a creature rare.
Enter now if you dare, Enter now the dragon's lair.
Back to top
View user's profile Send private message
Symbol
I'm a spammer
Reputation: 0

Joined: 18 Apr 2007
Posts: 5094
Location: Israel.

PostPosted: Sun Jul 29, 2007 6:25 am    Post subject: Reply with quote

whats that ip and -n and -w for?
-w for wait?
whats the rest for..?
Back to top
View user's profile Send private message
DeltaFlyer
Grandmaster Cheater
Reputation: 0

Joined: 22 Jul 2006
Posts: 666

PostPosted: Sun Jul 29, 2007 7:09 am    Post subject: Reply with quote

Type ipconfig -h in cmd, terminal, console, black box, etc., and read...
_________________

Wow.... still working at 827... what's INCA thinking?
zomg l33t hax at this place (IE only). Over 150 people have used it, what are YOU waiting for?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites