Go Back   Computer Forums > General Computing > Programming
Click Here to Login
Join Computer forums Today


Reply
 
Thread Tools Search this Thread Display Modes
 
Old 07-24-2008, 11:58 PM   #1
Solid State Member
 
irishsoldier's Avatar
 
Join Date: May 2007
Posts: 13
Talking Computer cleanup Batch File

Are there any batch file gurus that can help me out. I am looking to create a batch file that will run spybot, adaware, and symantec antivirus. However, I would like each program to perform its duties before before the next app opens. I would also like to have all programs stay open after completion. Is this possible?
__________________

irishsoldier is offline   Reply With Quote
Old 07-25-2008, 01:09 AM   #2
Guru
 
JogaBonito1502's Avatar
 
Join Date: Jan 2008
Location: U.S.
Posts: 7,841
Default Re: Computer cleanup Batch File

Some applications like that have scheduled tasks. Why don't you just use that?
__________________

JogaBonito1502 is offline   Reply With Quote
Old 07-25-2008, 06:59 AM   #3
Fully Optimized
 
ssc456's Avatar
 
Join Date: Jan 2007
Posts: 4,279
Send a message via MSN to ssc456
Default Re: Computer cleanup Batch File

Quote:
Originally Posted by irishsoldier View Post
Are there any batch file gurus that can help me out. I am looking to create a batch file that will run spybot, adaware, and symantec antivirus. However, I would like each program to perform its duties before before the next app opens. I would also like to have all programs stay open after completion. Is this possible?
i think you'd probably wnat some kinda macro program and then you can convert the macro to a stand alone .exe file as a batch file to run commands of a program like scanning could be tricky unless your anti virus had liek a start scan.exe file within its file directory.

its perfectly possible, have a look around your virus / spyware directories and click a few of the .exe files other than the main 1 and see if it will trigger a scan if it does then the .bat file jus has to say launch that file.

i dont know how you would get it to pause and then start the next 1 though ?

i think you should look for a macro
__________________
He who has never failed has never attempted anything worth succeeding at.

Dont Eat Animals, Its Not Good For Them And They Dont Like It!
ssc456 is offline   Reply With Quote
Old 07-25-2008, 09:39 AM   #4
Solid State Member
 
irishsoldier's Avatar
 
Join Date: May 2007
Posts: 13
Default Re: Computer cleanup Batch File

Quote:
Originally Posted by JogaBonito1502 View Post
Some applications like that have scheduled tasks. Why don't you just use that?
I know, I work IT and want to create batch files for my peers and customers for ease of use. I will get less calls as well, and this makes things very simple for the users. Also, I have found that scheduled scans can tend to screw up with software updates.

Quote:
Originally Posted by ssc456 View Post
i think you'd probably wnat some kinda macro program and then you can convert the macro to a stand alone .exe file as a batch file to run commands of a program like scanning could be tricky unless your anti virus had liek a start scan.exe file within its file directory.

its perfectly possible, have a look around your virus / spyware directories and click a few of the .exe files other than the main 1 and see if it will trigger a scan if it does then the .bat file jus has to say launch that file.

i dont know how you would get it to pause and then start the next 1 though ?

i think you should look for a macro
Thank you for the information. Does anyone here have any knowledge of macros, or can someone redirect me to a good reference site so I can learn the ins and outs?
irishsoldier is offline   Reply With Quote
Old 07-25-2008, 01:34 PM   #5
Fully Optimized
 
ssc456's Avatar
 
Join Date: Jan 2007
Posts: 4,279
Send a message via MSN to ssc456
Default Re: Computer cleanup Batch File

Quote:
Originally Posted by irishsoldier View Post
I know, I work IT and want to create batch files for my peers and customers for ease of use. I will get less calls as well, and this makes things very simple for the users. Also, I have found that scheduled scans can tend to screw up with software updates.



Thank you for the information. Does anyone here have any knowledge of macros, or can someone redirect me to a good reference site so I can learn the ins and outs?
hmmm well i dont know of any tutorial sites or anything. i do know its possible to make them from scratch yourself but is very difficult.

you can download loads of keyboard and mouse macros and then its basicly a case of pressing the record buton.

do your actions. and then press stop.

1 piece of advice i would give you if you are going to use macros then still use cmd or batch files to launch the programs, as you just said you'd be sending this out to clients / customers which means the chances are they have "anti virus" in a slightly different place on the start menu so it wouldnt work. but if you did bat/ cmd lanuches it would always be the same location. e.g C:/program files/anti virus/virus.exe

and then with a bit of luck the anti virus will always open centered in the screen so from there on all the buttons should be in the same place.

good luck macros are very tricky to perfect, i would say be patient aswell.
e.g if your running a high end c2d and you run the batch file and maybe 0.8 seconds later the anti virus is open so you click the "scan" tab and 0.3 seconds later its loaded the scan tab so you click scan.
if you roll that out to say an old celeron with 256 mb RAM it will take longer for things to load so when you run the bat file it may take 2 seconds to load the anti virus which means your click on the scan tab wouldnt have actually click then the scna button click will be a completely different place lol.

as i say perfecting macros is difficult just take your time. if you run the .bat file or command and it loads straight away count to 5 and then proceed to do the next step count to 5 again and proceed, its just easier that way you can roll it out to slower computers with no worries
__________________
He who has never failed has never attempted anything worth succeeding at.

Dont Eat Animals, Its Not Good For Them And They Dont Like It!
ssc456 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT -5. The time now is 08:55 AM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0