Jump to content

i hate computers


Recommended Posts

hey all, once again a stupid problem ..

thie is the code :

net use o: /delete /yes

ping 1.1.1.1 -n 1 -w 10000 > nul

net use o: \\srv\RIS\Applications /user:guest@domain.loc

echo Done,

EXIT

the ping thing wount work, it skips to the next line immidiatly, which causes the next map to fail ..

i must have it on the same user .. anyone has an idea why the ping isnt working ?

please save me ..

Link to comment
Share on other sites


try pinging 127.0.0.1

also increase the number of pings, its not skipping it, just going really fast.  change 1 to 10000

send 10,000 pings? he'd be there all week

something more appropiate maybe 3-4

ping -n 3 -w 10000 IP_ADDR > NUL

as for the ip to ping, are you sure you are actually able to ping the ip address from the machine at the time this script is running??

try logging by running this just before you run the ping:

ipconfig /all >net.log

net view >>net.log

net statistics workstation >>net.log

net config workstation >>net.log

then have a quick look @ net.log

Link to comment
Share on other sites

i hate computers
That was your topic's title?

@bardugu

Please use more descriptive titles, otherwise, neither will you get someone who knows what to do to stumble past your thread, nor are you making it easy for searching in future. :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...