First post, by CMR779
I did a search for batch files and this forum section seemed to come up the most so I decided to post this here. Anyway, It's 2025 and I decided to learn a new sill and get better at writing batch files, I'm having some trouble though. My file works, but it doesn't seem to regard anything other than the program calls in it. The other commands seem to be getting ignored. Nothing is getting echoed like it seems it should. Here's a sample:
REM - Rename a File, usage: RENAME <FILE> <NEWNAME>echo Renaming file.If %1.==. Goto Instcopy %1 %2 /vdel %1Goto End:Instecho Rename a File. Usage: RENAME <FILE> <NEWNAME>pause:End
The works. The file is renamed successfully, but nothing else seems to work. If I leave out any filenames for arguments it just gives me "Required parameter missing." as if I had just ran copy by itself. Is there something fundamental I'm misunderstanding about batch files?