

InterviewSolution
Saved Bookmarks
1. |
Solve : Complicated batch for statement help? |
Answer» <html><body><p>doing a rework of some files and <a href="https://interviewquestions.tuteehub.com/tag/updating-250800" style="font-weight:bold;" target="_blank" title="Click to know more about UPDATING">UPDATING</a> alot of utilities, <br/>helping a friend redo his class scheduling to incorporate some swf and pdf items into a <a href="https://interviewquestions.tuteehub.com/tag/daily-245095" style="font-weight:bold;" target="_blank" title="Click to know more about DAILY">DAILY</a> feed for each student..<br/><br/>here's the "structure"<br/>text file say Mon.txt has the directories to loop thru... for that given day..<br/>text file 2.. student file.. has the results..if none the file is blank.....<br/><br/>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 <a href="https://interviewquestions.tuteehub.com/tag/folders-994110" style="font-weight:bold;" target="_blank" title="Click to know more about FOLDERS">FOLDERS</a> begin with 01, 02, 03... to maintain a order to the presentations.. so the whole file name isn't important.<br/><br/>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.<br/>for /F "delims=" %%b in (%MASTERSRV%\Server\Class\%%a.txt) do ( <br/>forfiles -p "%%b" -s -m *.* /C "cmd /c echo path">>%MASTERSRV%\Server\Class\%%a-tmp.txt<br/>)<br/>)<br/><br/><br/>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 <a href="https://interviewquestions.tuteehub.com/tag/script-345000" style="font-weight:bold;" target="_blank" title="Click to know more about SCRIPT">SCRIPT</a> on the PC to allow them to keep pace.. much thanksI think you need to lose that <a href="https://interviewquestions.tuteehub.com/tag/second-238031" style="font-weight:bold;" target="_blank" title="Click to know more about SECOND">SECOND</a> closing parenthesis.<br/></p></body></html> | |