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,627 of 42,547    |
|    James Burden to All    |
|    Why does this batch file not work?    |
|    17 Apr 13 04:35:44    |
      From: james.burden1@gmail.com              Hi,       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.              I have used the /Y switch and it still asks me to confirm. When i do manually       confirm it, the file is still not moved.              Weird thing is that it used to worjk then has now stopped.              Please Help.              Below is the code              @echo off       if exist "\\[SERVERNAME]\[FOLDER1]\[FOLDER2]\[FOLDER3]\WORKING O       \[FILENAME].accdb" (       echo. File Exists       move /Y "\\[SERVERNAME]\[FOLDER1]\[FOLDER2]\[FOLDER3]\WORKING ON       [FILENAME].accdb" "\\[SERVERNAME]\[FOLDER1]\[FOLDER2]\"       rem exit              ) else (       rem exit       )              --- 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