SV650.org - SV650 & Gladius 650 Forum



Idle Banter For non SV and non bike related chat (and the odd bit of humour - but if any post isn't suitable it'll get deleted real quick).
There's also a "U" rating so please respect this. Newbies can also say "hello" here too.

Reply
 
Thread Tools
Old 04-06-09, 05:24 PM   #11
slloyd
Guest
 
Posts: n/a
Default Re: How to delay a batch file in MS Win XP?

Quote:
Originally Posted by SoulKiss View Post
On linux I would launch the batch file (script) at boot time, have it evaluate the results of the uptime command - if uptime > 60 secs then leave the loop, else sleep for 10 seconds, then execute the body of the code then exit.

in pseudocode

while (loop!=1)
{
get uptime
if uptime < 60
{
sleep 10
}
else
{
loop=1
}
do stuff
end
Stop! I am not ready for this language yet
  Reply With Quote
Old 04-06-09, 06:24 PM   #12
SoulKiss
Member
Mega Poster
 
SoulKiss's Avatar
 
Join Date: Jul 2006
Location: Sunny Croydonia
Posts: 6,124
Default Re: How to delay a batch file in MS Win XP?

Quote:
Originally Posted by slloyd View Post
Stop! I am not ready for this language yet
Erm thats babytalk as it is........
__________________
Sent from my PC NOT using any Tapatalk type rubbish!!

█╬╬╬╬()i¯i▀▀▀▀▀█Ξ███████████████████████████████)
SoulKiss is offline   Reply With Quote
Old 04-06-09, 06:32 PM   #13
Holdup
Guest
 
Posts: n/a
Default Re: How to delay a batch file in MS Win XP?

Dont ask me, im only the student

Ratchetjob, is there any thing you dont know?
  Reply With Quote
Old 04-06-09, 06:52 PM   #14
Dan
Guest
 
Posts: n/a
Default Re: How to delay a batch file in MS Win XP?

Quote:
Originally Posted by slloyd View Post
This seemed to work for me as an interim solution.

I needed this because I had the following situation:-

PC is on a WORKGROUP network, separate from the DOMAIN network. Needs to print to the DOMAIN printer, so connecting the Network Printer via IP address works, but once the PC was rebooted and you tried to access the printer, it came back with the error message Access Denied.

Even if I add the Group EVERYONE Full Control rights to the SHARED printer, it still doesn't connect.

The only way I found to be able to access the printer after the PC had rebooted was running the following unattended command:-

net use \\IP ADDRESS of Server\Printer Share Name /USER:Administrator@Domain Password /persistent:yes

So now, I have now added the ping 1000 command to the beginning of the script as supplied by RatchJob, and this delays enough time for all services to start and the command to complete successfully.
So you've got a batch file containing the administrator's password?
  Reply With Quote
Old 04-06-09, 07:01 PM   #15
SoulKiss
Member
Mega Poster
 
SoulKiss's Avatar
 
Join Date: Jul 2006
Location: Sunny Croydonia
Posts: 6,124
Default Re: How to delay a batch file in MS Win XP?

Quote:
Originally Posted by Dan View Post
So you've got a batch file containing the administrator's password?
Shhhhh!!!!!!

If he doesnt know about that, he wont worry about it........
__________________
Sent from my PC NOT using any Tapatalk type rubbish!!

█╬╬╬╬()i¯i▀▀▀▀▀█Ξ███████████████████████████████)
SoulKiss is offline   Reply With Quote
Old 04-06-09, 07:04 PM   #16
RatchetJob
Guest
 
Posts: n/a
Default Re: How to delay a batch file in MS Win XP?

Quote:
Originally Posted by Holdup View Post
Dont ask me, im only the student

Ratchetjob, is there any thing you dont know?

LOL, thanks.

The phrase "Jack of all trades and master of none" comes to mind.

Quote:
Originally Posted by Dan
So you've got a batch file containing the administrator's password?
If you have a limited and low number of users using this batch file try this:

net use \\IP ADDRESS of Server\Printer Share Name /USER:Administrator@Domain /savecred /persistent:yes

This will prompt you to type in the password the first time the batch file runs and save it encrypted for use later.

It means you don't have the password in the batch file but it does mean you need to type it in the first time.
  Reply With Quote
Old 04-06-09, 07:09 PM   #17
Dan
Guest
 
Posts: n/a
Default Re: How to delay a batch file in MS Win XP?

Quote:
Originally Posted by SoulKiss View Post
Shhhhh!!!!!!

If he doesnt know about that, he wont worry about it........
Lol... I can't help pointing it out... it makes the ethical hacker in me even more.... ethical
  Reply With Quote
Old 04-06-09, 07:40 PM   #18
TSM
The Sick Man
Mega Poster
 
TSM's Avatar
 
Join Date: Nov 2004
Location: Peckham.SE.LDN
Posts: 4,768
Default Re: How to delay a batch file in MS Win XP?

why not just write it in VBS or use kixstart script
there is also a sleep app that you can download for windows
__________________
OTR: KTM 690 Duke R 2015 Full Akro
SIDELINE: Kwak ZX636 A1P 2002, Red, R&G's, Yoshi, Double Bubble Screen
GONE: Kwak ZX-7R P1, Full Akro, Undertray, Screen
GONE: SV650S K2 Very Bruised & Without Fairing, Motovation Frame Sliders, R&G Ally Sprocket Toe Protector, HEL 2 Line Setup, GSXR K1 600 RWU Forks, Barnett Clutch & Springs, Penske 8981 Shock, Gilles Ti Rearsets, Steel Barends, Scottoiler, AFAM Chain & Sprockets, Twin FIAMM Horns, Skidmarx Bellypan, Full Micron Zeta Steel System, Cut down undertay.

Forum Problems & Information / Site Suggestions
TSM is offline   Reply With Quote
Old 04-06-09, 07:40 PM   #19
slloyd
Guest
 
Posts: n/a
Default Re: How to delay a batch file in MS Win XP?

Quote:
Originally Posted by Dan View Post
Lol... I can't help pointing it out... it makes the ethical hacker in me even more.... ethical
I know, not very viable at the moment - although the PC in question does boot straight into another application, that uses the windows connected printer to print.

Unfortunately the it's a Catch22 situation where there are 6 PC's require the use of a printer, but the company that they are loaned from do not want to them placed on the local domain for reasons still unbeknown to myself, and I have no say in the matter getting them on.

So the office director knows the circumstances, and it's his call to keep it this way, as unless I can install 3rd part software on the workstation - this is my only alternative.

Last edited by slloyd; 04-06-09 at 07:43 PM.
  Reply With Quote
Old 04-06-09, 07:42 PM   #20
Baph
Guest
 
Posts: n/a
Default Re: How to delay a batch file in MS Win XP?

Quote:
Originally Posted by slloyd View Post
So the office director knows the circumstances, and it's his call to keep it this way, as unless I can install 3rd part software on the workstation - this is my only alternative.
Why not just create another account within the domain, where that account has rights to use the printer & nothing else?

That way, you're not exposing the administrator account. KISS.
  Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
New Test Delay 6 months Nostrils Bikes - Talk & Issues 1 11-09-08 08:00 PM
Brands Hatch - 24-4-08 First Batch Mr Toad Photos 22 25-04-08 11:06 PM
BBC Sport: Bad weather causes Manx GP delay NewsBot News 0 31-08-07 03:40 PM
BBC Sport: Mist causes further delay to TT NewsBot News 0 04-06-07 08:00 AM
Batch converting Adobe pdf tomjones2 Idle Banter 1 17-03-06 03:16 PM


All times are GMT. The time now is 01:40 PM.


Powered by vBulletin® - Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.