I was acessing the production server via explorer \\server\, until the network team has disabled this feature for security issues, which got me annoyed I dont want to take a whole partition of my disk as a local resource with the remote desktop connection.
My freind Michael showed me how I can take only a specified folder by mapping a new network drive to the specified local folder on my machine, then take this drive as local resource with my remote desktop connection to the production server.
I have spent some time editing a windows service after installing (and uninstalling) it for several times and I have to admit that this consumes time on the command line tool, so I have written a batch file to stop the service, uninstall it, install it, and start it again, and all what i need to do is to run the batch file.
Paste the following lines in a file.txt, replace the service name and the service path to match yours, and rename the file to file.bat.
@ECHO Stopping service..
net stop AlertsService
@ECHO service stopped.
@ECHO Uninstalling Service…
@SET PATH=%PATH%;C:Program FilesMicrosoft Visual Studio 9.0VC
“C:WINDOWSMicrosoft.NETFrameworkv2.0.50727installutil” -u “C:DebugAlertsWindowsService.exe”
@ECHO Uninstall Done.
“C:WINDOWSMicrosoft.NETFrameworkv2.0.50727installutil” -i “C:DebugAlertsWindowsService.exe”
@ECHO Install Done.
@ECHO Starting Service..
net start AlertsService