dos commands, or file-rename

Blitz3D Forums/Blitz3D Beginners Area/dos commands, or file-rename

The Forum Archive is locked. These are the original blitzbasic.com forums, kept so their posts can still be read and searched. No new topics, replies or edits can be made here. To join the conversation, head over to the Blitz3D+ forums.

outfile=WriteFile("h:\temp.bat")
WriteLine(outfile,"rename h:\peach.exe peach.jpg")
CloseFile outfile
ExecFile("h:\temp.bat")
;DeleteFile("h:\temp.bat")

This seems to work fine- upto the point where I enable the last line, so I think there's no way to avoid an ugly .BAT file from staying on the harddisk. :/