Search found 6 matches

by Tigers!
23 Jul 2008 18:40
Forum: DOS Batch Forum
Topic: Ignore blank lines and set lines to variables
Replies: 1
Views: 6698

Ignore blank lines and set lines to variables

I have some issues at present with opening text files and then manipulating them in DOS (it would be so easy in UNIX or Perl. Curse my employer for being a Windows shop!) The code below shows the output of my ping that I wish to finally store in a file but first I want to tidy it up a little. Pingin...
by Tigers!
21 Jul 2008 17:25
Forum: DOS Batch Forum
Topic: "FOR" help
Replies: 5
Views: 7472

Good post Greenfinch. I am glad that you are onboard.
by Tigers!
21 Jul 2008 17:22
Forum: DOS Batch Forum
Topic: Brackets with If & For commands
Replies: 2
Views: 5123

Thanks for that Greenfinch.
You obviously have far more success that I do in finding information on the Microsoft site!
by Tigers!
20 Jul 2008 22:52
Forum: DOS Batch Forum
Topic: Brackets with If & For commands
Replies: 2
Views: 5123

Brackets with If & For commands

Is it possible to have multiple commands with the If & for command? Does IF EXIST filename ( command 1 command 2 ) ELSE ( command 1 command 2 command 3 ) work? Or is the format different? Can we do multiple commands with if ? Does FOR /D %variable IN (set) DO ( comman...
by Tigers!
08 Jul 2008 17:22
Forum: DOS Batch Forum
Topic: Setting variable values and logging to a file
Replies: 9
Views: 9556

Thank you all for your help thus far. I have split the code into 2 functions as suggested earlier. The code is now @echo off REM *** Set location to begin the directory list *** set filestodeletepath=f:\AU-SAP33_Backup\oracle\Q20\sapbackup REM *** The script itself lives here *** set homepath=f:\AU-...
by Tigers!
01 Jul 2008 22:13
Forum: DOS Batch Forum
Topic: Setting variable values and logging to a file
Replies: 9
Views: 9556

Setting variable values and logging to a file

Gudday all I have been trying fro a number of weeks now to log details in a log file of a script I wrote earlier. The script is scans a set of directories and gathers the files that have the strings "Q20_" or "DATA" in their file names and have their archive attribute not set. On...