home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.msdos.batch      Fun with MS-DOS batch files      42,547 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 40,784 of 42,547   
   Gary Segal to Gary Segal   
   Re: RoboCopy Date Folder and Log File   
   13 Nov 13 07:31:30   
   
   From: segalgary@gmail.com   
      
   On Tuesday, November 5, 2013 10:52:22 AM UTC-5, Gary Segal wrote:   
   > Hello folks   
   >   
   > I am straggling with this for few weeks now and so far can not resolve it   
   >   
   >   
   >   
   > The logic works spontaneously on different PC. I need to run some processes   
   on few diff systems and every system has it is own issues.   
   >   
   >   
   >   
   > The logic below works on C drive but not on D. Both drives are NTFS and both   
   local drives (same drive partitioned)   
   >   
   >   
   >   
   > I get "ERROR 3 (0x00000003) Opening Log File D:\EDIHomeDepot\2   
   13\11-05-2013\LogFile.txt"   
   >   
   > The system can not find the path specified.   
   >   
   >   
   >   
   > Here is my source:   
   >   
   >   
   >   
   > Set mm=%date:~4,2%   
   >   
   > Set dd=%date:~7,2%   
   >   
   > Set yyyy=%date:~10,4%   
   >   
   > Set Year=%date:~10,4%   
   >   
   >   
   >   
   > RoboCopy "D:\EDICommands\Temp" "D:\EDI\HomeDepot\%Year%\%mm%-%dd%-%yyyy%"   
   "HD*.HTML" /LOG:"D:\EDI\HomeDepot\%Year%\%mm%-%dd%-%yyyy%\LogFile.txt" /MOV /V   
   /NP /W:5 /R:5   
   >   
   >   
   >   
   > I tried diff folder names like "11.05.2013" and "test" it does not make any   
   difference it still does not work.   
   >   
   >   
   >   
   > BUT   
   >   
   >   
   >   
   > If I run: "RoboCopy "D:\EDICommands\Temp" "D:\EDI\HomeDepot\%Year%"   
   "HD*.HTML" /LOG:"D:\EDI\HomeDepot\%Year%\LogFile.txt" /MOV /V /NP /W:5 /R:5"   
   >   
   >   
   >   
   > without date "%mm%-%dd%-%yyyy%" directory - it works fine   
   >   
   >   
   >   
   > If I create %mm%-%dd%-%yyyy% and LofFile.txt in the directory it Works as   
   well.   
   >   
   >   
   >   
   >   
   >   
   > Any Idea what am I doing wrong.   
   >   
   >   
   >   
   > Thank you in advance.   
   >   
   > Gary   
      
   Thank you all   
   I ended up creating directory If Counter > 0   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca