I've got an application that sends print jobs to a local print share via a DOS copy:

copy fileToPrint \\myLocalComputerName\sharename

When the network is down it throws an error. However the share is on the local computer! Any way to get around this? I have control of both the local computer and the application code.

link|improve this question

feedback

2 Answers

It might work if you substitute 127.0.0.1 for myLocalComputerName.

link|improve this answer
feedback
up vote 0 down vote accepted

Found the following article which uses a loopback network adapter to access the local share when the network is unavailable.

http://geekswithblogs.net/dtotzke/articles/26204.aspx

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.