| 1. |
Solve : Copying a file from a folder with today's date to another folder.? |
|
Answer» Hello everyone,
Thanks for the reply. To answer your question, no I will not be needing any info the the stream folder. The stream folder was created to save the daily csv file. I have an excel lookup which checks the daily csv for anomalies. If nothing is found, nothing happens and we move on to the next day. If an ANOMALY is found, an email is sent and we investigate. That's it. Thanks againUnable to test this at my workplace but this should do the trick. I typed this all up off top of my head without testing. Also to NOTE, I have the batch stepping its way to the destination Stream that is to be destroyed and recreated vs a direct target path. A direct target path could be used but this should do the trick. XCOPY was used because your dated folder at c:\monitoring with a positive match to hg200T.csv will create the date-named-folder and copy the file over to this C:\warning\excel\stream location. Code: [Select]c: cd\. cd warning cd excel rd stream /s/q md stream xcopy c:\monitoring\hg200T.csv c:\warning\excel\stream /s/yJust got home from work and tested this on my home computer and forgot to add wildcard * which corrects for the ever changing folder name that is date named. Here is it corrected and cleaned up: Code: [Select]rd c:\warning\excel\stream\ /s/q md c:\warning\excel\stream xcopy c:\monitoring\*hg200T.csv c:\warning\excel\stream /s/y |
|