Gohan Posted December 11, 2011 Author Share Posted December 11, 2011 Could anybody tell me what command I can use to see if a file is already in use.If it matters, I'm trying to make the server check if a .bat file is running before opening it.Thanks :) Link to comment Share on other sites More sharing options...
Robin Posted December 11, 2011 Share Posted December 11, 2011 Don't use batch files for anything. Ever. Link to comment Share on other sites More sharing options...
Gohan Posted December 11, 2011 Author Share Posted December 11, 2011 @Robin:> Don't use batch files for anything. Ever.Well then perhaps you know of a better way to have my server automatically restart if it crashes while I'm not home? Link to comment Share on other sites More sharing options...
Robin Posted December 11, 2011 Share Posted December 11, 2011 Add error handlers and make it so it never crashes.Or, better yet, develop your server so it can't crash by actually fixing the issues it comes across rather than restarting it. Crystalshire had a few crashes at the start. I found the problem and fixed it.Now it can run for weeks at a time without a single issue. Hasn't crashed for about 3 months. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now