97Views6Replies

Author Options:

Batch File Help Answered

Okay, so I figured out how to make one batch file send information to another one. The solution was quite simple. Sejma helped, both witht he final design and for support. I just want to know if there is a way to time an IF command without using CHOICE. Basically, I want to combine the two:

ping localhost -n x > nul
if %a% equ a goto a

If that is even possible, I don;t know. I know I've posted a million questions already, so I'm very sorry about that. Thank you for your time.

EDIT: Figured it out.
IF %A% EQU A GOTO A & PING LOCALHOST -N x > NUL
Now, does anybody know how to convert a .EXE file to a .BAT file?

Comments

The forums are retiring in 2021 and are now closed for new topics and comments.
0
Prof. Pickle
Prof. Pickle

8 years ago

Try reversing the order:

IF %A% EQU A PING LOCALHOST -N X >NUL & GOTO A

That should work better..

P.S: Keep asking questions, it gives me a reason to get up in the morning!

0
Doctor What
Doctor What

11 years ago

 You've only asked three.  That's not too many!

0
TheBatchies
TheBatchies

Answer 11 years ago

I figured to you guys it probably is...

0
Doctor What
Doctor What

Answer 11 years ago

 Nah.  Ask as many as you like, as long as they aren't questions that have already been answered (meaning here or google).

Your questions are very good (out of the three you posted so far).  

Unfortunately, I don't have the answer you are looking for.

0
Doctor What
Doctor What

Answer 11 years ago

 Have you looked at the batch tutorials on the site?

0
TheBatchies
TheBatchies

Answer 11 years ago

Yeah, but most that I can find are all about the same thing...

Computer Prank!

Secret Command Prompt -- Star Wars!

Matrix Batch File!


They're not bad, just not what I'm looking for. That's all.