Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Other Programming > VBScript
| Search | Today's Posts | Mark Forums Read
VBScript For questions and discussions related to VBScript.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VBScript section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old March 8th, 2006, 09:24 AM
Registered User
 
Join Date: Mar 2006
Location: , , .
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default how do i make a script run in background

hello...i`ve made a script that deletes temporary files ... how do i make it run in the background or startup with the computer ?

Reply With Quote
  #2 (permalink)  
Old March 8th, 2006, 07:34 PM
Wrox Technical Editor
 
Join Date: Dec 2005
Location: , , Canada.
Posts: 271
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You can also place scripts in the Startup folder, if you have a script that needs to run every time Windows starts.

- A.Kahtava
Reply With Quote
  #3 (permalink)  
Old March 9th, 2006, 01:57 AM
Registered User
 
Join Date: Mar 2006
Location: , , .
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

i don't need it to run every time Windows stars...i just need it to run in the background so that i don`t see what`s going on...it`s annoying... i managed to make it run in the background but when i do that, cmd prompt is an inactive window so commands la wshshell.sendkeys "1" sends key "1" to the active windows... i need to make cmd prompt the only active window..

Reply With Quote
  #4 (permalink)  
Old March 9th, 2006, 06:24 AM
Registered User
 
Join Date: Mar 2006
Location: , , .
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

can`t anyone help me ??? i just need to keep the cmd prompt window active and in the background at the same time...anyone ???... or...can i write a script to disable mouse and keyboard ???

Reply With Quote
  #5 (permalink)  
Old March 9th, 2006, 08:24 AM
Wrox Technical Editor
 
Join Date: Dec 2005
Location: , , Canada.
Posts: 271
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I'm sorry I don't understand the question, so Err... I can't help.

How can you have an active CMD prompt in the background?
If the active CMD prompt is active in the background what is supposed to be happening in the foreground?
Are you trying to emulate a windows service through VBScript?
Why are we disabling the mouse or keyboard?

Perhaps a description of what you are trying to achieve would be a more suitable post.

- A.Kahtava
Reply With Quote
  #6 (permalink)  
Old March 9th, 2006, 08:47 AM
Registered User
 
Join Date: Mar 2006
Location: , , .
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:
Are you trying to emulate a windows service through VBScript?
yeap...that`s it...i need the script to run in the background... just like a win32 service :D. can u help me now ?


Reply With Quote
  #7 (permalink)  
Old April 25th, 2006, 11:21 AM
Friend of Wrox
Points: 8,019, Level: 38
Points: 8,019, Level: 38 Points: 8,019, Level: 38 Points: 8,019, Level: 38
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2005
Location: Mauchline, East Ayrshire, Scotland
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Default

post up some code please

www.crmpicco.co.uk
www.ie7.com
Reply With Quote




Similar Threads
Thread Thread Starter Forum Replies Last Post
Make the tilde work on script element hpox ASP.NET 2.0 Basics 10 February 14th, 2011 03:00 PM
could smb help to make run the DB on a hoster? fewer ASP.NET 2.0 Basics 3 December 3rd, 2006 06:52 PM
make .js file run as fast as possible crmpicco Javascript 4 October 24th, 2005 11:35 AM
How do I make this script into a css file? - Backg jstewie CSS Cascading Style Sheets 3 July 21st, 2005 08:13 AM
Call and run CGI script from a PHP script ... how? dbruins BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 1 June 10th, 2003 03:09 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.