Computing.Net > Forums > Programming > Auto Launch Bat Script

Auto Launch Bat Script

Reply to Message Icon

Original Message
Name: mikesoong
Date: August 14, 2006 at 18:34:21 Pacific
Subject: Auto Launch Bat Script
OS: XP
CPU/Ram: 256
Model/Manufacturer: HP
Comment:

Is there a way to schedule a bat script to run everyday without using AT command or scheduler?


Report Offensive Message For Removal


Response Number 1
Name: Shr0Om
Date: August 15, 2006 at 03:04:48 Pacific
Subject: Auto Launch Bat Script
Reply: (edit)

If you dont want to use a schedulder the batch script would have to be running constantly, checking for some condition. Not so very optimal.. Does it has to run everyday, or only when you boot the pc? If so, you could always add it to win startup folder.


Report Offensive Follow Up For Removal

Response Number 2
Name: Mechanix2Go
Date: August 15, 2006 at 03:33:52 Pacific
Subject: Auto Launch Bat Script
Reply: (edit)

Hi Shroom,

Yeah, there must be a few ways to mickey-mouse it. As you say, not great to have a bat run constantly.


=====================================
If at first you don't succeed, you're about average.

M2



Report Offensive Follow Up For Removal

Response Number 3
Name: mikesoong
Date: August 15, 2006 at 17:41:11 Pacific
Subject: Auto Launch Bat Script
Reply: (edit)

well actually I want it to auto launch on certain dates. I dont want to use scheduler cause I dont want the users to mess up the scheduler.


Report Offensive Follow Up For Removal

Response Number 4
Name: AKL-MFCU
Date: September 16, 2006 at 09:32:34 Pacific
Subject: Auto Launch Bat Script
Reply: (edit)

search for pstools by systernals on the web. One of his programs is called "psexec" which can help network admins run executables over the network on other machines. You can then schedule a task on your machine or a machine your users cannot touch and have it set to do something like this:

psexec \\@computers.txt -c c:\yourbatchfilenamehere.bat

where computers.txt is a file containing the list of machines you want it to run on.

Note: if you get an "access is denied." error, its probabbly needing a user who can run the batch file on that machine if its requiring administrative privileges to complete. to do this you would do:

psexec \\@computers.txt -u domainnamehere\usernamehere -p passwordforusernamehere -c c:\batch\defragandreport.bat

hope that helps.


Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: Auto Launch Bat Script

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software




How often do you use Computing.Net?

Every Day
Once a Week
Once a Month
This Is My First Time!


View Results

Poll Finishes In 3 Days.
Discuss in The Lounge