MSFN Forum: i hate computers - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

i hate computers Rate Topic: -----

#1 User is offline   bardugu 

  • Newbie
  • Group: Members
  • Posts: 25
  • Joined: 31-July 04

Posted 08 August 2004 - 08:41 AM

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 ..


#2 User is offline   bardugu 

  • Newbie
  • Group: Members
  • Posts: 25
  • Joined: 31-July 04

Posted 09 August 2004 - 05:27 AM

please help,
maybe someone here know a better way to create a pause ?
this is really the only thing keeping my cd from perfection
thanks

#3 User is offline   sleepnmojo 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 472
  • Joined: 02-March 04

Posted 09 August 2004 - 07:44 AM

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

#4 User is offline   Craz1 

  • Group: Members
  • Posts: 8
  • Joined: 21-July 04

Posted 09 August 2004 - 09:17 AM

sleepnmojo, on Aug 9 2004, 11:14 AM, said:

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

#5 User is offline   Craz1 

  • Group: Members
  • Posts: 8
  • Joined: 21-July 04

Posted 09 August 2004 - 09:26 AM

bardugu, on Aug 9 2004, 08:57 AM, said:

please help,
maybe someone here know a better way to create a pause ?
this is really the only thing keeping my cd from perfection
thanks

if you are only trying to create a pause ... why not use the sleep command?

http://unattended.ms...files/sleep.zip

:)


Usage:

start /wait sleep.exe 30

(the above syntax will halt your batch file for 30 seconds)

#6 User is offline   prathapml 

  • Follow the rules please :-)
  • Group: Patrons
  • Posts: 6,791
  • Joined: 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 09 August 2004 - 10:06 AM

Quote

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. :)

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy