1.

Solve : To be, or not to be, that is the question !!?

Answer»

hi
i have a problem with my batch script
i WANT to DIR and check to see if these files are exist or not
Quote

myflash.rar source.fla newfile.swf movie.flv *.reg
if they are exist (mostly in source folder) go to finish and end but if there are not at least one of those files exist MOVE everything from source folder to extra folder

important=
1-its not Necessary for existence of all of those files at the same time
2-but at least one of those should be in source folder
3-if there were not at lease one of those files move everything from source folder to extra folder

my script is here but i dont know why its not working and how should i fix it

Quote
@echo off & setLocal EnableDelayedExpansion
for /f "tokens=* delims= " %%a in ('dir/s myflash.rar source.fla newfile.swf movie.flv *.reg') do (
IF EXIST %%a GOTO finish
IF NOT EXIST %%a GOTO nofile

:nofile
move "source\*.*" "extra"
:finish
:end
)
This just looks like what you were trying to do in your previous thread. Why didn't you keep POSTING in that one?TOPIC Closed.

See your other thread for replies.


Discussion

No Comment Found