|
-
March 19th, 2001, 03:27 PM
#1
Using DOS Copy command within a shell
Hello,
I am having a devil of a time with this problem.
At my network here at work, if I start my DOS prompt and type the following:
copy C:\labels\myfile.txt \\sean\hp
HP is my printer on my computer and the file prints fine. So I want to add that functionality to a labelmaker that I wrote, but if I try to use the Shell like this:
Shell "copy c:\labels\myfile.txt \\sean\hp"
I have also tried :
Shell "Command.com /c copy c:\labels\myfile.txt \\sean\hp"
and this:
Shell "c:\labels\copy myfile.txt \\sean\hp"
I get the file not found error message, though the file is certainly there.
Any way around this???
Thanks,
Sean
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|