[Date Prev][Date Next][Subject Prev][Subject Next][ Date Index][ Subject Index]

Re: script for USB printers



Robert,

Thanks for the quick response. I put in login.cmd as instructed and it
seems to work

But I don't seem to be able to go back to using LPT1 with the parallel
cable.  That is, I haven't found a way to disconnect the share. (my
printer name is HPLASERJ)

notably,
net use \\HPLASERJ /DELETE gets me
The network connection could not be found

and
net use LPT1: \\HPLASERJ /DELETE gets me
A command was used with conflicting switches

if I enter net use after the first of the above, I get
New connections will not be remembered
and then a status table showing Status OK Local LPT1 and Remote
\\T20\\HPLASERJ

so -- is there a way to disconnect the share? IS there a way to toggle
between using LPT1 normally and to access the share printer?

and while we're at it: I assume that I can use alternate printers by
chnaginf the sharename, but is anything else required to do that?

thanks
Philip


----- Original Message -----
From: "Robert Holmgren" 
To: 
Sent: Thursday, June 08, 2006 10:18 AM
Subject: Re: script for USB printers


> ** Reply to message from "Philip Friedman"  on Thu,
8 Jun
> 2006 08:37:27 -0400
>
>
> > At the end of his May 12 post, Robert writes:
>
> >> you want to make this arrangement permanent by
> >> running a startup script each time you fire up
> >> your computer. There are several ways to do that...
> >> Later...
>
> > I'd love to know more about writing the startup
> > script. Could "Later..." be soon?
>
> Ms. van Ness never communicated again (extremely rude!), so
> Later didn't happen.
>
> OK, first make a file called C:\LOGIN.CMD (use XyWrite).
> Put it in root dir of BootDrive e.g. C:. Note that this may
> become an all-purpose file for initializing various things
> on a LAN, e.g. sharing with other machines. Put the
> following one line in it (adjusted for your machine -- I'll
> pursue the "LIZ" example of 12 May):
>
>  net.exe use LPT1: \\LIZ\HPLJ5 /PERSISTENT:no
>
> The "persistent" parameter is tricky. It can be a godsend
> or a royal pain. If you log on and off of different
> usernames, without rebooting your box, then
> "/PERSISTENT:yes" will auto-restore shared network
> connections. *And* it will auto-restore when you reboot.
> To get rid of a persistent share, you need to "net use
> \\sharename /DELETE" it. If you fiddle with your
> connections frequently, or with your LAN, then you
> definitely want "/PERSISTENT:no".
>
> OK, so now you've got that one line in your LOGIN.CMD file.
> STore it. On the Desktop, go to Start ==> Settings, and
> (depends on whether you have "Classic" Start menu or the
> asinine new one) find Taskbar & Start Menu ==> Advanced.
> There should be a box called Customize Start Menu or
> something like that (I'm writing from memory, don't have an
> XP box nearby). Click the Advanced button. You'll see a
> standard Windows Explorer dialog. Usually in subdir
> "C:\Documents and Settings", find the "AllUsers" folder (or a
> folder named after your current logged-in username). Drill
> down to Start Menu ==> Programs. See if there's a "Startup"
> folder in Programs -- if there isn't, right click and add a
> New one. Open (click on) this Startup folder. Right-click,
> New ==> Shortcut. Fill in the blanks for C:\LOGIN.CMD. Done.
>
> Every time you reboot your computer, the LOGIN script will
> run. Your printer will always be ready to use.
>
> -----------------------------
> Robert Holmgren
> holmgren@xxxxxxxx
> -----------------------------
>