How to write Batch Script to Change Directory to WILDCARD folder based on user input in order to copy a?

Read HELP FOR and then try at the command line this double FOR loop.

Read HELP FOR and then try at the command line this double FOR loop for /d %d in (\temp\f*) do @for %f in (%d\f*) do @echo %f as you see, it will loop over all the f* folders and for each of them if will loop over all the f* files. So, adapting this simple strategy to your requirements and giving it an appropiate BAT syntax, you may begin trying this... @echo off set storename=%1 set myfolder=C:\Users\ADMINISTRATOR\Desktop\ set dstfolder=%myfolder%\PROCESSED_FILES set myfiles=*. Zip for /d %%d in (%myfolder%\*%storename%*) do ( for %%f in (%%d\%myfiles%) do ( echo copy %%f %dstfolder% ) ) test carefully before removing the ECHO.

Echo off set storename=%1 set myfolder=C:\Users\ADMINISTRATOR\Desktop\ set dstfolder=%myfolder%\PROCESSED_FILES set myfiles=*. Zip for /d %%d in (%myfolder%*%storename%*) do ( for %%f in (%%d\%myfiles%) do ( echo copy %%f %dstfolder% ) ) – user1050628 Nov 17 at 21:33 It doesn't work. When I checked my Processed Files folder where I expected to see zip file, it is empty.

– user1050628 Nov 17 at 21:35 of course it is empty, review the loop and remove the ECHO – PA. Nov 18 at 9:14.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions