Search found 13 matches

by mgrahek
12 Sep 2008 20:05
Forum: DOS Batch Forum
Topic: Need help creating bat for network AV program, add hostname
Replies: 12
Views: 18713

Thank you. I didn't know the echo would write to a file!
by mgrahek
12 Sep 2008 18:52
Forum: DOS Batch Forum
Topic: [OFF TOPIC] Your relation to batch files
Replies: 2
Views: 5549

I am using it as a step back into programming. I hate system maintenance and I'm looking at making it a little more simple. That's how I got started. Actually, I had to log off an XP machine at a certain time and didn't know how, so I made a single line command, saved as a .bat file and scheduled it...
by mgrahek
12 Sep 2008 18:29
Forum: DOS Batch Forum
Topic: System maintenance program for Vista/XP/2000: help needed
Replies: 1
Views: 6229

I'm on a part that is a little confusing to me. I have a current version that asks questions that have a Y/N answer. The yes answer sets the variable to the proper switch that is needed to execute the procedure. This is what it looks like when it is run. http://www.tuprox.com/avscancurrent.jpg This ...
by mgrahek
12 Sep 2008 18:13
Forum: DOS Batch Forum
Topic: System maintenance program for Vista/XP/2000: help needed
Replies: 1
Views: 6229

System maintenance program for Vista/XP/2000: help needed

This is my first real batch program and it is FUN!! I'm looking at making this a comprehensive program that has MANY features. I'm looking for anyone who wants to help with programming sections (adding additional AV program selections) and system maintenance. I welcome any and all advice/suggestions...
by mgrahek
12 Sep 2008 17:49
Forum: DOS Batch Forum
Topic: Automation help needed: detect directory and program/version
Replies: 0
Views: 7184

Automation help needed: detect directory and program/version

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 woul...
by mgrahek
12 Sep 2008 17:09
Forum: DOS Batch Forum
Topic: Need help creating bat for network AV program, add hostname
Replies: 12
Views: 18713

Thank you sir! That did the trick perfectly!! Finally, this may seem really trivial, but how do I print a blank line into a file, followed by a line of ************************'s and another blank line. I want this to be a divider on my log files. Thanks again for your help, I really appreciate it!!
by mgrahek
12 Sep 2008 14:37
Forum: DOS Batch Forum
Topic: Network
Replies: 2
Views: 6819

What OS are the servers running?
by mgrahek
10 Sep 2008 10:43
Forum: DOS Batch Forum
Topic: Need help creating bat for network AV program, add hostname
Replies: 12
Views: 18713

Thanks!! I didn't understand that it would work differently when it was in a script vs when it was run from the CLI. I put your original suggestion into the script and it spit out a nicely formatted date! This is what my code looks like now: FOR /F "usebackq tokens=1,2,3,4,* delims=/-" %%a...
by mgrahek
10 Sep 2008 09:48
Forum: DOS Batch Forum
Topic: Need help creating bat for network AV program, add hostname
Replies: 12
Views: 18713

Well, I don't have the date included yet because it doesn't work. When I type exactly what you had in quotes: FOR /F "usebackq tokens=1,2,3,* delims=/-" %%a IN ('%date%') DO (set datestring=%%c-%%b-%%a) I get the error I quoted above: %%a was unexpected at this time What does my script hav...
by mgrahek
09 Sep 2008 18:51
Forum: DOS Batch Forum
Topic: How do I make a variable that "counts" and saves t
Replies: 1
Views: 6220

How do I make a variable that "counts" and saves t

I want to have a counter in my batch file. I want it to count the number of times the program has run, or the number of times that the sub section of the batch file is executed. Is it possible to have the program modify itself as it is run and then have the changes saved and made permanent? I figure...
by mgrahek
09 Sep 2008 16:34
Forum: DOS Batch Forum
Topic: Need help creating bat for network AV program, add hostname
Replies: 12
Views: 18713

Thanks for the tips!! I checked my date format and it looks like this: Tue 09/14/2008 So that is why it wasn't a valid use, I think. I figure that it is the /'s.. When I enter your FOR /F "usebackq tokens=1,2,3,* delims=/-" %%a IN ('%date%') DO (set datestring=%%c-%%b-%%a) I get this in re...
by mgrahek
04 Sep 2008 06:30
Forum: DOS Batch Forum
Topic: Need help creating bat for network AV program, add hostname
Replies: 12
Views: 18713

greenfinch wrote:As for the date - where do you want it? How do you want it to look (e.g. did you want something like computername-Sophos-AV-Scan-YYYY-MM-DD.log ?)


Yes, computername-Sophos-AV-Scan-YYYY-MM-DD.log. Any suggestions?
by mgrahek
29 Aug 2008 08:43
Forum: DOS Batch Forum
Topic: Need help creating bat for network AV program, add hostname
Replies: 12
Views: 18713

Need help creating bat for network AV program, add hostname

I am having some issues creating this batch file. This is really the first one I have written and need some help. Here is what it looks like so far ************************************* REM Change to working directory cd\program files\sophos\sophos anti-virus\ REM Print Computer Information hostname...