Automation help needed: detect directory and program/version
Posted: 12 Sep 2008 17:49
I manage a few different AV programs and I was wondering if it is possible for me to automatically detect what AV program is installed. Currently I'm setting up for Sophos and AVG.
I currently have a step that prompts and asks what AV vendor are you using. It isn't necessary to remove it but it would be nice.
Is there a way to see if a directory is already there? Like:
If c:\logs exists goto partb...
I also want to make a c:\log dir. Is there a way to check to see if this has been created already? This is what I currently do to make the needed directories. It runs everytime the program runs. Is this a problem?
It doesn't give me an error when it sees the directories when they are already created.
I currently have a step that prompts and asks what AV vendor are you using. It isn't necessary to remove it but it would be nice.
Is there a way to see if a directory is already there? Like:
If c:\logs exists goto partb...
I also want to make a c:\log dir. Is there a way to check to see if this has been created already? This is what I currently do to make the needed directories. It runs everytime the program runs. Is this a problem?
Code: Select all
cd\
mkdir logs
cd\logs
mkdir Sophos
It doesn't give me an error when it sees the directories when they are already created.