System has one Harddisk with one drive ("C:\") The needed path is located at F:\eventlogging What I have done: I executed the subst cmd in order to generate the F:\ drive (from C:\) Added the directory "eventlogging" The problem: In the code, there are parts in which it writes to a file inside of F:\eventlogging This only applies to IIS7 and higher btw. So your error message doesn't come from anything inside your script, but from the interpreter itself, trying to read the next line of the script. Otterson Lake Farm also provides a large heated tack room, with saddle racks, blanket/pad racks, personal lockers, feed containment area, and new stairs leading into the hay loft area. I prefer to stick the user space setup as long as a system service does not depend on the device. Persistent Connections Whenever you establish new connections, Windows can keep those connections around after a reboot or not called persistence. You should be aware that subst is a per-session setting. You can do it in a command shell using 'prompt'. Windows - is there a way to see what apps spawn/use which processes? There is system feature to start a virtual disk from the system But what to do, when a disk is Even if the unmount is the very last line of the script, the interpreter doesn't know until it tries to read the next line - and fails, because the script is not available any more. C:\>ActivateMappedNetworkDrive.bat n: C:\>n: N:\>. :: /P Add, delete or display persistent drives. For a better experience, please enable JavaScript in your browser before proceeding. /persistent: {yes | no} Controls the use of persistent network connections. Register. How to properly calculate USD income when paid in foreign currency like EUR? If you were to open a standard cmd and run the command: Why do digital modulation schemes (in general) involve only two carrier signals? My hat's off to you; I've spent my time in the batch scripting trenches, and I know how painful it is. Replace the