Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Copy command and WScript.Shell

Status
Not open for further replies.

kenbw

Programmer
May 2, 2002
39
US
Has any one tried to use the copy command to send a file to a printer? (i.e. copy filename.txt print) I have tried to do this on an ASP page using the Shell command and I know it should work because I can do this on the command prompt. Does anyone know why I cannot do this when I introduce the web aspect to it? I'm using IIS 5 to attempt this.

Ken White
 
Try:

oShell = Server.CreateObject("WScript.Shell")
oShell.Run "cmd /C copy filename.txt print",1,False Jon Hawkins
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top