Suppose some Windows service uses code that wants mapped network drives and no UNC paths. How can I make the drive mapping available to the service\'s session when the servi
Instead of relying on a persistent drive, you could set the script to map/unmap the drive each time you use it:
net use Q: \\share.domain.com\share forfiles /p Q:\myfolder /s /m *.txt /d -0 /c "cmd /c del @path" net use Q: /delete
This works for me.