Skip to main content

How to Answer The Following....

More
18 years 4 months ago #15268 by asab
Sorry, I need more help.

I've been reading a bit about batch files.

I don't have time to study it through thoroughly and I need to go in tomorrow to fix the problem.

The batch file sounds a good idea and I want to get it right the first time.

"A batch file on each PC run by a simple icon that reconnects the shared drive and the printer".

Thanks in advance.
More
18 years 4 months ago #15272 by TheBishop
Your batch file will be based around the NET USE command. Don't use this verbatim, but it will be something along the lines of:

net use LPT1: /delete
net use S: /delete
net use LPT1: \\computername-or-ip\sharename password /user:domain-name\username /persistent:yes
net use S: \\computername-or-ip\sharename password /user:domain-name\username /persistent:yes

The bugbear with this sort of stuff is the user accounts; you have to have an account on the target PC that has sufficient privileges - you might be best to set up the same user and password on every PC to use for the sharing. If you get any problems when you try to set up the batchfile, run each command individually in a command prompt to see what happens. And chances are it'll be an authentication or access problem.
For more information on Net Use have a look at www.microsoft.com/resources/documentatio...et_use.mspx?mfr=true
And finally, when your batchfile works, create a desktop shortcut/icon to run it
More
18 years 4 months ago #15275 by asab
Thanks mate, life saver.

I've got the ccna 3 exam on wednesday, so I don't have the time to study batch files. But I have to go in and try and fix the problem on thursday.

Once again, thanks.

take care.
More
18 years 4 months ago #15308 by asab
Hello again,

Just to update....

Went in to see what the problem was with the system.

And you were right Bishop, it was user error.

I think that's something I'm going to have to get use to.

Overall, I'm happy that I got my first job done and done well.

Once again, thanks for your help.

Take care.

I passed ccna3. ccna4 starts next week.
More
18 years 4 months ago #15334 by TheBishop
Replied by TheBishop on topic Job
You just got your first chunk of real-world experience!
Congratulations on a good job well done; use it as a stepping stone to greater things
More
18 years 1 month ago #17093 by talk2sp
Replied by talk2sp on topic STEPPING STONE.....
man u got energy and courage there is no big deal all u need is to remove fear and shakes. u know.... u are a star man i got to tell u. been that was ur first job man u tried i will give u a B+ for that....

just for information sake

i have same thing on my network.
p2p connection . and i have my printers and other things shared from one system.

take courage in ur back pocket when u have work to do.

BORN TO BE GREAT

c0de - 3
..........................................................
Take Responsibility! Don't let failures define you
Time to create page: 0.134 seconds