Batch File to connect to a pc

S

Shaz

Please help me....I have created a batch file for a
windows 2000 computer, to connect to a printer that is on
a windows XP machine.

What is the format in which the command should be?? I
have to change the username in the batch file, but not
sure where it was the username or password, as they were
both the same.

Thanks for your help.
 
P

Pegasus \(MVP\)

Shaz said:
Please help me....I have created a batch file for a
windows 2000 computer, to connect to a printer that is on
a windows XP machine.

What is the format in which the command should be?? I
have to change the username in the batch file, but not
sure where it was the username or password, as they were
both the same.

Thanks for your help.

You could try this:

net use lpt2: \\SomePC\SomeSharedPrinter /user:SomePC\Shaz SomePassword
 
S

Shaz

Yeah spot on...that is exactly what I was looking
for...thank you so much!

-----Original Message-----



You could try this:

net use lpt2:
\\SomePC\SomeSharedPrinter /user:SomePC\Shaz SomePassword
 
S

Shaz

I have set up this batch file....but how do you run it
in "slow motion", as something comes up after my command,
but disappears to quickly to read!

Thanks
-----Original Message-----



You could try this:

net use lpt2:
\\SomePC\SomeSharedPrinter /user:SomePC\Shaz SomePassword
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top