Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - How to do No hang up VBScript (nohup for VBScript)

Reply
 
Old 10-27-2008   #1 (permalink)
gimme_this_gimme_that


 
 

How to do No hang up VBScript (nohup for VBScript)

I'm running XP SP-2.

How can I execute a VBScript so that when I log out the script
continues to execute.

More specifically... I'd like to execute a CMD script .

Yes, I could run the CMD as a Service - but that's a hassle.

Thanks.

My System SpecsSystem Spec
Old 10-27-2008   #2 (permalink)
Al Dunbar


 
 

Re: How to do No hang up VBScript (nohup for VBScript)


<gimme_this_gimme_that@xxxxxx> wrote in message
news:425b6c11-9303-4005-8c03-5d13e4323f19@xxxxxx
Quote:

> I'm running XP SP-2.
>
> How can I execute a VBScript so that when I log out the script
> continues to execute.
>
> More specifically... I'd like to execute a CMD script .
>
> Yes, I could run the CMD as a Service - but that's a hassle.
Define it as a scheduled task.

/Al


My System SpecsSystem Spec
Old 10-28-2008   #3 (permalink)
gimme_this_gimme_that


 
 

Re: How to do No hang up VBScript (nohup for VBScript)

Quote:

> Define it as a scheduled task.
>
> /Al
How do I schedule it from the command line so it executes once, now.

Thanks.
My System SpecsSystem Spec
Old 10-28-2008   #4 (permalink)
Al Dunbar


 
 

Re: How to do No hang up VBScript (nohup for VBScript)


<gimme_this_gimme_that@xxxxxx> wrote in message
news:4e2512d5-9d2d-411a-96d1-229c7a0998d4@xxxxxx
Quote:

>
Quote:

>> Define it as a scheduled task.
>>
>> /Al
>
> How do I schedule it from the command line
schtasks.exe
Quote:

> so it executes once, now.
schtasks.exe /? shows all you need to use the command, which, in your case
*might* look like:

schtasks /create /tn testtask /tr c:\scripts\testtask.cmd /sc once /st
18:00:00 /sd "2008-10-31"

A word of caution, though. If you cause the task to run under the
credentials you are logged on with, and starts running while you are logged
on, it appears (to me at least) that the task is run as a process in your
current session. So it stops if you logout.

To avoid this, you could supply alternate credentials (/ru username /rp
password), or schedule it to start at some time after you expect to logout.


/Al


My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
New to VBscript, Help please! VB Script
CSS and VBscript VB Script
Where is VBscript now? VB Script
VBscript Help VB Script
vbscript and HTA help VB Script


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46