rather new with regards to writing batch files. A quick background... we run a batch file that stopped SQL, copied file from server to local computer, extracted with 7zip and then started SQL. We recently started upgrading to windows 7 and the batch no longer works because admin privileges are needed for stopping SQL and only non-administrator mode can do the copy portion. The batch we used on xp is:
@echo On
ECHO Off
CLS
NET STOP MSSQL$namedsql
xcopy \server\folder1\folder2\file.7z
c:\folder\7za e P:\file.7z -op:\ -y
NET START MSSQL$namedsql
To make matters more confusing. I can run this whole batch in "administrator mode" on one computer but can't replicate this ability on any other computer.
Any possible solutions would be a tremendous help! Thank you!