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')