0

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.

jeffspost
  • 139
  • 3
  • 5
  • 14

2 Answers2

2

It might work if you substitute 127.0.0.1 for myLocalComputerName.

phoebus
  • 8,370
  • 1
  • 31
  • 29
0

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

Link

Glorfindel
  • 1,213
  • 3
  • 15
  • 22
jeffspost
  • 139
  • 3
  • 5
  • 14