1.

Solve : Possible To Create a .bat With a .bat??

Answer»

Is it possible to create a batch file with a linee of code in it in a certain directory? Like, for example, creating a batch file called "Cool.bat" with a line of code in it in my My Documents folder? And then is there a command to delete said file? And is administrative rights required to do it?

Windows XPWhat are you trying to ACCOMPLISH?Code: [Select]ECHO @ECHO OFF > Cool.bat
ECHO ECHO Cool! >> Cool.bat
Put that in a BATCH file and SEE what HAPPENS. (Hint: Nothing on screen. Try doing a DIR after doing this. Make sure there isn't already a Cool.bat in the directory!)Awesome! Thanks for the HELP! I also then searched for how to delete in batch, and found out it was the del command. Go figure. =P. Btw, this may be a silly question, but my friend was asking me about batch, and asked if it were possible to make a Pong game in it. I told him that batch was not a programming language, but I still am curious. Would it be possible to do it?it MIGHT be possible using assembly, but batch is not meant for game programming. Use a proper language to do games...Quote

Awesome! Thanks for the help! I also then searched for how to delete in batch, and found out it was the del command. Go figure. =P. Btw, this may be a silly question, but my friend was asking me about batch, and asked if it were possible to make a Pong game in it. I told him that [highlight]batch was not a programming language[/highlight], but I still am curious. Would it be possible to do it?

You were correct.


Discussion

No Comment Found