Stop and Start a service via batch or cmd file?

Use the SC (service control) command, it gives you a lot more options than just start & stop. DESCRIPTION: SC is a command line program used for communicating with the NT Service Controller and services. USAGE: sc <server> [command] [service name] … The option <server> has the form “\\ServerName” Further help on commands can be … Read more

Batch script: how to check for admin rights

Issues blak3r / Rushyo’s solution works fine for everything except Windows 8. Running AT on Windows 8 results in: The AT command has been deprecated. Please use schtasks.exe instead. The request is not supported. (see screenshot #1) and will return %errorLevel% 1.   Research So, I went searching for other commands that require elevated permissions. … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)