Is there anyway to create a batch file to run specific programs?

  • Thread starter Thread starter Nocturnal
  • Start date Start date
N

Nocturnal

Like create a batch file to run Ad-Aware and Spybot? Or would this be too
complicated for simple batch scripts?
 
From: "Nocturnal" <[email protected]>

| Like create a batch file to run Ad-Aware and Spybot? Or would this be too
| complicated for simple batch scripts?
|

Sure !

However you query is very unspecific and you really should be posting aa query such as this
in a scripting News group.
The following is a good one; microsoft.public.windows.server.scripting

Can you be more specific in what you are trying to accomplish. I will be glad to help you
out. I also remeber your scripting query in a.p.s.

Let me guide you to a very good scripting language called KiXtart. http://kixtart.org {
KiXtart is CareWare }

It has a BASIC like programming structure and is very simple to use but has many high level
capabilities which includes but is not limited to...

- Read/write/delete from the Registry
- Read/Write to .INI files
- Create COM automatatic objects
- Use Windows Management Instrumentation
- Do Loops
- For Loops
- While Loops
- Many pre-defined macros
- If... Then...Else
- String functions

Example 1:

Using Andy Walker's suggestion (lines are wrapped) programmed in KiXtart, puts BUTTS' web
site in the Resricted Zone...

SETCONSOLE("SHOW")
SETCONSOLE("MAXIMIZE")
SETCONSOLE("FOREGROUND")
cls

ADDKEY("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet
Settings\ZoneMap\Domains\pcbutts1.com")
WRITEVALUE("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet
Settings\ZoneMap\Domains\pcbutts1.com","*","4",REG_DWORD)



Example 2:

Simply executes SpyBot S&D with specific switch parameters.

SETCONSOLE("HIDE")
SHELL('"C:\Program Files\Spybot - Search & Destroy\SpybotSD.exe" /AUTOCHECK /AUTOFIX
/AUTOCLOSE')
 
Both Ad-Aware (the professional version) and SpyBot Search and Destroy have
built in schedulers. No batch file is necessary.

--


Regards,

Richard Urban
Microsoft MVP Windows Shell/User

Quote from George Ankner:
If you knew as much as you think you know,
You would realize that you don't know what you thought you knew!
 
SpyBot is ONLY freeware. Ad-Aware need user intervention if you use the free
version. You DO get what you pay for in this instance.

--


Regards,

Richard Urban
Microsoft MVP Windows Shell/User

Quote from George Ankner:
If you knew as much as you think you know,
You would realize that you don't know what you thought you knew!
 
From: "Nocturnal" <[email protected]>

| I'm talking about freeware versions though.
|

SpyBot S&D can place a JOB in the MS Scheduled Tasks.
Mode= Advanced
Settings --> Scheduler

This will create the job.

Outside of SpyBot you can, go to...
start --> settings --> control panel --> scheduled tasks

Right Click on "Spybot - Search & Destroy - Scheduled Task"

Change the scheduling and properties accordingly.

Note, you may have to reapply the Administrative Account and Password for the scheduled job.
 
Thank you David!

--


Regards,

Richard Urban
Microsoft MVP Windows Shell/User

Quote from George Ankner:
If you knew as much as you think you know,
You would realize that you don't know what you thought you knew!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top