Saved Bookmarks
| 1. |
Solve : bat file help needed? |
|
Answer» HI, Why call a bat file within a bat file? I am having a problem where my bat file does not complete. It's a database backup bat file and it SHUTS down the database, shuts down several services then does an xcopy. The xcopy takes several hours, but it appears to copy all 71 files. But then it stops. The very next line after the xcopy is to echo a . to the output log, which it does not do. So, is this an example of where I need to make this xcopy into a bat file and then call this new bat file? I'm not sure why this bat file does not complete, unless there is some sort of time out for bat files, where if a command does not complete within a certain amount of time, the bat file just stops. Any suggestions?Do you actually want it to copy a . to the output file because Code: [Select]echo. sends a blank line. FBthe actual code is echo . >> output.file, which works fine (I have several of these prior to the xcopy command and it puts a . in the output file. It just makes the output a little more readable. Quote I'm not sure why this bat file does not complete, unless there is some sort of time out for bat files, where if a command does not complete within a certain amount of time, the bat file just stops. Jobs run off the task SCHEDULER can be time limited in the settings tab. If that's not the case here, post your batch file so we can take a look. Well now I feel really stupid. Sometimes the solution to a problem is the most OBVIOUS. The schedule for the job was set to 3 hours. Thanks for your help and SORRY for wasting your time. |
|