1.

Solve : Complicated batch for statement help?

Answer»

doing a rework of some files and UPDATING alot of utilities,
helping a friend redo his class scheduling to incorporate some swf and pdf items into a DAILY feed for each student..

here's the "structure"
text file say Mon.txt has the directories to loop thru... for that given day..
text file 2.. student file.. has the results..if none the file is blank.....

batch should look at student file.. see the last doc read... then goback and get the next item in that folder.. refereed to in the Dayfile.. the files in the FOLDERS begin with 01, 02, 03... to maintain a order to the presentations.. so the whole file name isn't important.

i've been craming a bunch of batch work in due to a move.. in 2 weeks.. and loosin my patience :-D I get the directories to spit, but it does them all.. but I know i've got the counter messed up because I can't get it to just move one file upIf you don't post your code, that means you are expecting us to perform a nasty combination of mindreading and guesswork, which we don't like.
for /F "delims=" %%b in (%MASTERSRV%\Server\Class\%%a.txt) do (
forfiles -p "%%b" -s -m *.* /C "cmd /c echo path">>%MASTERSRV%\Server\Class\%%a-tmp.txt
)
)


I'm just going with a simpler code, this will output the directories for the student, dump it on the term and I'll use a for loop SCRIPT on the PC to allow them to keep pace.. much thanksI think you need to lose that SECOND closing parenthesis.



Discussion

No Comment Found