Windows Scripting
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsSystem AdministrationWindows Scripting

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
  #1  
Old May 15th, 2008, 06:35 PM
Rosca Rosca is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2008
Posts: 5 Rosca User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 36 m 40 sec
Reputation Power: 0
[VBScript] Query

Hey guys,

I've never used to much VBS and all I really know is batch and a little of delphi and pascal so I was wondering if it's possible to do the following in a VBscript

1. Kill a process remotely
2. Start the process again

I can get services with a remote or local batch file but seeing as it's a process I need my monitoring tool to run the program locally so that it can remotely close the process, their may be an even easier way and If so I'm glad to hear it !

Also fi you have any quick links to basic VBScripting that'd be awesome

Cheers,

Rosca.

Reply With Quote
  #2  
Old May 16th, 2008, 06:38 PM
Nilpo's Avatar
Nilpo Nilpo is offline
Click here for more information.
 
Join Date: Jun 2006
Location: Salem, OH
Posts: 729 Nilpo User rank is Major (30000 - 40000 Reputation Level)Nilpo User rank is Major (30000 - 40000 Reputation Level)Nilpo User rank is Major (30000 - 40000 Reputation Level)Nilpo User rank is Major (30000 - 40000 Reputation Level)Nilpo User rank is Major (30000 - 40000 Reputation Level)Nilpo User rank is Major (30000 - 40000 Reputation Level)Nilpo User rank is Major (30000 - 40000 Reputation Level)Nilpo User rank is Major (30000 - 40000 Reputation Level)Nilpo User rank is Major (30000 - 40000 Reputation Level)Nilpo User rank is Major (30000 - 40000 Reputation Level)  Folding Points: 175254 Folding Title: Super Ultimate Folder - Level 1Folding Points: 175254 Folding Title: Super Ultimate Folder - Level 1Folding Points: 175254 Folding Title: Super Ultimate Folder - Level 1Folding Points: 175254 Folding Title: Super Ultimate Folder - Level 1Folding Points: 175254 Folding Title: Super Ultimate Folder - Level 1Folding Points: 175254 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 4 Days 2 h 35 m 18 sec
Reputation Power: 351
Send a message via ICQ to Nilpo Send a message via AIM to Nilpo Send a message via MSN to Nilpo Send a message via Yahoo to Nilpo Send a message via Google Talk to Nilpo Send a message via Skype to Nilpo
MySpace
This can be achieved by implementing WMI in your VBScript. Check out my article.

Working with System Processes in WSH.
__________________
Click the image if at any point you don't like my decision.

Scripting problems? Windows questions? Ask the Windows Guru!


Reply With Quote
  #3  
Old May 18th, 2008, 07:29 PM
Rosca Rosca is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2008
Posts: 5 Rosca User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 36 m 40 sec
Reputation Power: 0
Thanks heaps, gonna go through it now.

Reply With Quote
  #4  
Old May 20th, 2008, 01:30 AM
Nilpo's Avatar
Nilpo Nilpo is offline
Click here for more information.
 
Join Date: Jun 2006
Location: Salem, OH
Posts: 729 Nilpo User rank is Major (30000 - 40000 Reputation Level)Nilpo User rank is Major (30000 - 40000 Reputation Level)Nilpo User rank is Major (30000 - 40000 Reputation Level)Nilpo User rank is Major (30000 - 40000 Reputation Level)Nilpo User rank is Major (30000 - 40000 Reputation Level)Nilpo User rank is Major (30000 - 40000 Reputation Level)Nilpo User rank is Major (30000 - 40000 Reputation Level)Nilpo User rank is Major (30000 - 40000 Reputation Level)Nilpo User rank is Major (30000 - 40000 Reputation Level)Nilpo User rank is Major (30000 - 40000 Reputation Level)  Folding Points: 175254 Folding Title: Super Ultimate Folder - Level 1Folding Points: 175254 Folding Title: Super Ultimate Folder - Level 1Folding Points: 175254 Folding Title: Super Ultimate Folder - Level 1Folding Points: 175254 Folding Title: Super Ultimate Folder - Level 1Folding Points: 175254 Folding Title: Super Ultimate Folder - Level 1Folding Points: 175254 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 4 Days 2 h 35 m 18 sec
Reputation Power: 351
Send a message via ICQ to Nilpo Send a message via AIM to Nilpo Send a message via MSN to Nilpo Send a message via Yahoo to Nilpo Send a message via Google Talk to Nilpo Send a message via Skype to Nilpo
MySpace
No problem. That should get you started.

Reply With Quote
Reply

Viewing: ASP Free ForumsSystem AdministrationWindows Scripting > [VBScript] Query


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway