Main > Software Forum
JoyMonkey!! Can you write a batch file....
AGGIEZ:
--- Quote from: JoyMonkey on May 26, 2004, 05:50:21 pm ---This should do the trick. Take this TXT file and rename it BAT, then just run it from your roms folder and it'll move all the mahjong roms to c:\mahjong
This is based on games listed as Mahjong in Catver.ini
hope this helps!
Edit: For the record, Mahjong games take up 477megs and irritate the hell out of me. If I had any idea how to play mahjong, or the slightest idea of what it's about, maybe I'd feel differently. Is there a Mahjong guide out there somewhere?
--- End quote ---
So, let me get this straight. Save the nomajong.txt to the ROMS folder and then rename it nomajong.bat? That doesn't change the file type from .txt to .bat. I need laymens directions... ???
JoyMonkey:
A batch file is just a text file containing a set of DOS instructions, running a bat from DOS or windows will execute every command listed in the bat. It's one of the few cases where simply renaming the file extension changes the file-type; because it ends in .bat windows knows to run it instead of opening notepad.
AGGIEZ:
--- Quote from: JoyMonkey on May 26, 2004, 08:32:52 pm ---A batch file is just a text file containing a set of DOS instructions, running a bat from DOS or windows will execute every command listed in the bat. It's one of the few cases where simply renaming the file extension changes the file-type; because it ends in .bat windows knows to run it instead of opening notepad.
--- End quote ---
This is what I get when I run it....
"The syntax of the command is incorrect"
JoyMonkey:
It worked fine for me, it's the same as the other batch files I've done. Have you tried running nomahjong.bat from the command prompt? It uses the standard DOS 'mkdir' and 'move' commands. I know some versions of windows don't recognise the 'move' command without a little help.
If running it from the command prompt doesn't work, try downloading move.exe from here:
http://www.techadvice.com/specs/files_dl.asp?fnid=29627
and put it in yout roms folder along with nomahjong.bat