Close RMS from the command line?

Oct 01, 2009 4 Replies

Hi all, I am running maintenance on a scheduled basis and need to make sure that RMS (POS, Manager, and HQ Client) are not running when I'm running maintenance. Specifically, I want to clean up all the .tmp files from the %TEMP% folder from the command line, and these are often in use by RMS.



How do I stop the applications from the command line?



Thanks all!


try stopping the database with: net stop mssqlserver this would crash rms and hqclient but might leave the program open with an error message on the screen, so not sure if it would release the temp files. if that works, start the server again afterwards with: net start mssqlserver

This would also st> Hi all,

Hi all, I am running maintenance on a scheduled basis and need to make sure that RMS (POS, Manager, and HQ Client) are not running when I'm running maintenance. Specifically, I want to clean up all the .tmp files from the %TEMP% folder from the command line, and these are often in use by RMS.

How do I stop the applications from the command line?

Thanks all!

Thanks Jeff and Matt.

I think taskkill is the best solution in this case.

Also, anyone else have problems with your .tmp files stacking up and eventually preventing POS from running or am I the only one.

Thanks again, works like a charm, and didn't know about that command.

BK

"Jeff @ Check Po> Brandon,

Just make CERTAIN that no transactions will be posting at the time you kill the process. If you exit SO POS, there is a small chance that you will lose data as the transaction is posted to the various database tables.

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required