Forums before death by AOL, social media and spammers... "We can't have nice things"
|    alt.msdos.batch.nt    |    Fun with Windows NT batch files    |    68,980 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 67,147 of 68,980    |
|    George H. Compton IV to Ammammata    |
|    Re: [NT4] wait for a service to start    |
|    01 Feb 18 13:49:39    |
      From: george_compton@hotmail.com              On Tuesday, January 30, 2018 at 8:31:14 AM UTC-8, Ammammata wrote:       > I run a batch file at startup, like this:       >       > net use s: \\192.168.1.2\c password /user:administrator       >       > but fails with the message "the workstation service hasn't been started"       >       > If I check in services, the a.m. service is running, automatic start       >       > if I manually run the batch file after a while it works       >       > how can I tell the batch file to wait until the workstation service is up &       > running?       >       > or just insert a delay of - say - 10 seconds?       >       > TIA       >       > --       > /-\ /\/\ /\/\ /-\ /\/\ /\/\ /-\ T /-\       > -=- -=- -=- -=- -=- -=- -=- -=- - -=-       > >>>>> http://www.bb2002.it :) <<<<<       > ........... [ al lavoro ] ...........              You should be able to just start the service in the batch file you're using       before the other codes run..              @echo off              net start "YOUR-service"       exit              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca