Quantcast
Channel: Visual C# forum
Viewing all articles
Browse latest Browse all 31927

How to refence the folder path in C# from a shared folder

$
0
0

I have a console app that uses a text file to read off of from the same folder as the .EXE.  When I run it directly from the folder on the share drive, it works fine. When I run it from a schedule task it starts and looks in C:\Windows\System32\MyFileName.txt.

How can I in C# point it to the same path of the .EXE?


Viewing all articles
Browse latest Browse all 31927

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>