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,626 of 42,547    |
|    foxidrive to James Burden    |
|    Re: Why does this batch file not work?    |
|    17 Apr 13 22:08:51    |
      From: not@this.address.invalid              On 17/04/2013 9:35 PM, James Burden wrote:       > I have a batch file that checks a folder to see if there is a file in there.       If it is then move it elsewhere.              If this doesn't work then you may not have permissions over the files and       folders.              @echo off       if exist "\\[SERVERNAME]\[FOLDER1]\[FOLDER2]\[FOLDER3]\WORKING O       \[FILENAME].accdb" (       echo. File Exists       del "\\[SERVERNAME]\[FOLDER1]\[FOLDER2]\[FILENAME].accdb" 2>nul       move /Y "\\[SERVERNAME]\[FOLDER1]\[FOLDER2]\[FOLDER3]\WORKING ON       [FILENAME].accdb"       "\\[SERVERNAME]\[FOLDER1]\[FOLDER2]\"       rem exit       ) else (       rem exit       )                     --       foxi              --- 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