|
-
Jan 3rd, 2000, 04:44 AM
#1
Thread Starter
Junior Member
Is there a way to change the default printer with code ?? If so what is it. I know the user can change the default printer with the common dialog box but I'm having a problem when I try to do it with code. Any help is appreciated
[This message has been edited by raicheman (edited 01-03-2000).]
-
Jan 3rd, 2000, 05:46 AM
#2
Member
If u r on NT, u can use
"net use" command.
After constructing the command use Shell function to run it..
-
Jan 3rd, 2000, 05:53 AM
#3
Junior Member
Yes, you can use "net use ...." but that will not set the printer as default. It will simply add it. I'm not sure how you would do that in VB, but I know how to do it in Kix Script. You can write a Kix script and use a shell command to run it. If you want to do it using Kix and need help just e-mail me and I will be glad to help you.
Thanks
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
|