I'm requesting assistance in using code that's worked for me on a .NET web application and now trying to run it as a Module .exe on the server. I know why it's not working, I just don't know the syntax to get it working correctly.
Previously, I had an app run inside a folder on the web server /ms/xml/test.xml I would reference this file by using Server.MapPath such as this:
myXMLDoc = New XmlDocument
myXMLDoc.Load(Server.MapPath("test.xml"))
Now I am trying to use this code on a Module .exe file that resides on the C: drive of the server and will be added to the Task Scheduler.
I'm not sure how I reference this file now that it is on an extra hard drive. Our web server is on the D: drive. We are running Windows 2012. This .exe file is on the C: drive.