
Similarly substituted drives will display the contents of the local folder the drive is mapped to instead of the mapped drive letter. \\servername\sharename) instead of the mapped drive letter. In such a case WizTree will display the contents of the network drive using the UNC name (e.g. This is a work around for a Windows bug/feature that does not allow elevated applications to access network and substituted drives that were created by a non elevated process.

Than click on Change Settings For All Users. Than open Properties of your service_name.exe file. NOTE: goto bin\Ddebug folder of your project folder.

Remove static void main method from Program.cs file. than right-click on serviceProcessInstaller1 and change its property value of Account from User to Local System. than right-click and select Add Installer.

Right-Click on service_name.cs file and open designer of service. Protected override void OnStart(string args)ĮventLog.WriteEvent("Timer_Service", new EventInstance(0, 0, EventLogEntryType.Information), new string ) Timer_Service service = new Timer_Service() Public partial class Timer_Service : ServiceBase Than copy following code into your service_name.cs file.

Open Visual studio and select new project by selecting Windows Service template in Windows Desktop tab.
