Hi!
I'm trying to create a TOGGLE batch file (.bat) and haven't been able to get it to work perfectly...
I have a file in my folder, test: "abcd.cbca" ... I need to toggle the extension of that file from .cbca to .__cbca.
So whenever I execute the batch, it should :
rename abcd.cbca to abcd.__cbca
Or if it had been renamed yesterday, it should rename it to abcd.cbca
ie
a toggle between the file name whenever the batch file is exeuted.
Here's the code I'm trying out, but it doesn't work...
@ECHO OFF
CD "E:\test"
IF EXIST abcd.__cbca (
ren abcd.__cbca abcd.cbca
) ELSE (
ren abcd.cbca abcd.__cbca
)
PAUSE
CLS
EXIT
I'm getting an error that the ELSE command is not a dos command... 
-Mohit.

