1.

Solve : Need batch file?

Answer»

I need a rather simple batch file!!

I want to CHECK for a particular file in a FOLDER - EXAMPLE "aaa.txt" and if found rename it to "ccc.txt". If I don't FIND "aaa.txt" - check for "bbb.txt" and rename to "ccc.txt".

That's it -- Any help will be appreciated.Welcome to the forum
it would be
if exist aaa.txt (
ren aaa.txt ccc.txt
) else (
ren bbb.txt ccc.txt
)

I am ASSUMING that bbb.txt will be present and that the file is ran from the same directoty as the files.
All that information canbe found easily just google ms dos help

Almn



Discussion

No Comment Found