Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista General Discussion > Vista/Command Question

Reply
Thread Tools Display Modes

Vista/Command Question

 
 
Benny
Guest
Posts: n/a

 
      03-07-2008
I am not an IT professional. I am an engineer that has been responsible for
the CADD systems here for years. In order to utilize the drivers provided by
our CADD software provider for our plotters, I use the Net Use DOS command to
direct virtual printer ports (LPT2, LPT3, LPT4...) to their respective
network addresses. The printer drivers that we use are editable and using
these generic names is easier than providing the entire path in each driver.
Anyway, on to my question. Let me preface by saying, I have asked our IT
professional and I get the deer in the headlight look and really feel as
though they don't have a clue (suprise, suprise.) One even asked what Net
Use did!! I digress. Is there a way in Vista to make these assignments from
the OS without going to the cmd shell? Here is an example of the command
line that I input:

net use lpt2 \\printserver\printer_name /persistent:yes.

The final question is, how do I do the above command from within Vista?

I'm just curious.

Thanks,
Benny

 
Reply With Quote
 
 
 
 
Lee
Guest
Posts: n/a

 
      03-07-2008
Hello Benny,

Your Net Use below is correct and if you wish you can write a Visual Basic
script so when a user logs in it's runs the script in the background;
although that method does create you more work as you have to manually
assign this to each user or PC

Lee

"Benny" <> wrote in message
news:0F4B43CF-067E-4D2E-860A-...
>I am not an IT professional. I am an engineer that has been responsible
>for
> the CADD systems here for years. In order to utilize the drivers provided
> by
> our CADD software provider for our plotters, I use the Net Use DOS command
> to
> direct virtual printer ports (LPT2, LPT3, LPT4...) to their respective
> network addresses. The printer drivers that we use are editable and using
> these generic names is easier than providing the entire path in each
> driver.
> Anyway, on to my question. Let me preface by saying, I have asked our IT
> professional and I get the deer in the headlight look and really feel as
> though they don't have a clue (suprise, suprise.) One even asked what Net
> Use did!! I digress. Is there a way in Vista to make these assignments
> from
> the OS without going to the cmd shell? Here is an example of the command
> line that I input:
>
> net use lpt2 \\printserver\printer_name /persistent:yes.
>
> The final question is, how do I do the above command from within Vista?
>
> I'm just curious.
>
> Thanks,
> Benny
>


 
Reply With Quote
 
Synapse Syndrome
Guest
Posts: n/a

 
      03-07-2008
"Benny" <> wrote in message
news:0F4B43CF-067E-4D2E-860A-...
>I am not an IT professional. I am an engineer that has been responsible
>for
> the CADD systems here for years. In order to utilize the drivers provided
> by
> our CADD software provider for our plotters, I use the Net Use DOS command
> to
> direct virtual printer ports (LPT2, LPT3, LPT4...) to their respective
> network addresses. The printer drivers that we use are editable and using
> these generic names is easier than providing the entire path in each
> driver.
> Anyway, on to my question. Let me preface by saying, I have asked our IT
> professional and I get the deer in the headlight look and really feel as
> though they don't have a clue (suprise, suprise.) One even asked what Net
> Use did!! I digress. Is there a way in Vista to make these assignments
> from
> the OS without going to the cmd shell? Here is an example of the command
> line that I input:
>
> net use lpt2 \\printserver\printer_name /persistent:yes.
>
> The final question is, how do I do the above command from within Vista?



You can add those commands to a login script, or if this is a print server
that does not get logged into during the working day you can use a startup
script instead. Logon scripts are very easy to add to a user profile, but
startup scripts are a little more involved, and I am unsure of the best way
to achieve it in Vista.

The easiest way to add a logon batch script is to right click Computer >
Manage

Go to Local Users and Groups and find your user profile. Double click it
and go to the Profile tab. Add the location of your login script in the
Logon script box.

ss.




 
Reply With Quote
 
Mark L. Ferguson
Guest
Posts: n/a

 
      03-07-2008
Vista requires admins to explicitly tell the system they wish a command to
'run as admin' RightClick start/.../system tools/command prompt. 'run as
admin'. Run the command.

To make this easy in Vista, use the Properties of that command prompt icon
to set it to run as admin all the time, there is a checkbox.

Also, create a shortcut to run the command, and set the properties of the
shortcut to 'run as admin'
"cmd /c "net use ..."
--
Was this helpful? Then click the "Yes" Ratings button. Voting helps the web
interface.
http://www.microsoft.com/wn3/locales...APostAsHelpful

Mark L. Ferguson

..
"Benny" <> wrote in message
news:0F4B43CF-067E-4D2E-860A-...
>I am not an IT professional. I am an engineer that has been responsible
>for
> the CADD systems here for years. In order to utilize the drivers provided
> by
> our CADD software provider for our plotters, I use the Net Use DOS command
> to
> direct virtual printer ports (LPT2, LPT3, LPT4...) to their respective
> network addresses. The printer drivers that we use are editable and using
> these generic names is easier than providing the entire path in each
> driver.
> Anyway, on to my question. Let me preface by saying, I have asked our IT
> professional and I get the deer in the headlight look and really feel as
> though they don't have a clue (suprise, suprise.) One even asked what Net
> Use did!! I digress. Is there a way in Vista to make these assignments
> from
> the OS without going to the cmd shell? Here is an example of the command
> line that I input:
>
> net use lpt2 \\printserver\printer_name /persistent:yes.
>
> The final question is, how do I do the above command from within Vista?
>
> I'm just curious.
>
> Thanks,
> Benny
>


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Any way to delete Command Bar in Vista? t.behan@comcast.net Windows Vista General Discussion 1 01-10-2008 06:05 PM
net use command over dial up on Vista CrC Windows Vista General Discussion 1 10-17-2007 10:05 PM
Question about Launching shell command from Credential Provider hkfg9876@yahoo.com Windows Vista General Discussion 0 07-10-2007 06:00 PM
Sys Command in Vista John Braham Windows Vista General Discussion 2 05-15-2007 02:14 PM
vista genral question and ultimate question pedro g Windows Vista General Discussion 7 02-10-2007 03:34 AM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59