Scripts Thread, Restart when script completes in Coding and Web Development; Howdee,
Continuing my script learning quest...
I would like to add the necessary code to force a restart when a ...
-
16th May 2008, 04:57 PM #1
- Rep Power
- 13
Restart when script completes
Howdee,
Continuing my script learning quest...
I would like to add the necessary code to force a restart when a script has completed everything (e.g. installing software etc). All the options I can find at the moment are about 400 lines of code just to do this 'simple' task - an exaggeration I know! Is there a shorter/simple/quicker way to achieve what I want?
Thanks, Dave.
-
-
IDG Tech News
-
16th May 2008, 05:12 PM #2 What language are you using ?
Using basic batch commands you can use a:
shutdown -r
Or Autoit shutdown command:
Shutdown(6) ;Force a reboot
All the options I can find at the moment are about 400 lines of code just to do this 'simple' task
Aggree 100% with that - I've always take the approach of keeping scripts as short as possible.
-
-
16th May 2008, 08:12 PM #3
- Rep Power
- 13

Originally Posted by
mattx
What language are you using ?
Sorry, should have mentioned that!
VB scripts.
Dave
-
-
16th May 2008, 08:33 PM #4
Sorry, should have mentioned that!
VB scripts.
Arrr, thats why you are finding examples of bloated code.....:-)
I never will understand why when looking at VB scripts it takes 10 lines to do something which takes say 2 or 3 in batch or AutoIT...
-
-
18th May 2008, 10:26 PM #5
- Rep Power
- 13
Ok...shortest code will do then! ;-)
-
SHARE:
Similar Threads
-
By boomam in forum Windows
Replies: 11
Last Post: 12th March 2008, 03:08 PM
-
By jwood in forum Windows
Replies: 7
Last Post: 20th December 2007, 03:01 PM
-
By richard in forum Windows
Replies: 2
Last Post: 25th June 2007, 07:49 AM
-
By Midget in forum Hardware
Replies: 9
Last Post: 17th April 2007, 08:16 AM
-
By Midget in forum Hardware
Replies: 0
Last Post: 16th April 2007, 10:55 AM
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules