For loops

From Edgar BV Wiki
Revision as of 13:04, 21 January 2008 by Red (talk | contribs) (New page: <pre> In a batch file: FOR %%A IN (Datasubset) DO Command %%A FOR %%A IN (c:\backupmysql\*) DO "C:\blat194\blatt.bat" %%A On the command line: FOR %A IN (c:\backupmysql\*) DO "C:\blat1...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
In a batch file:

FOR %%A IN (Datasubset) DO Command %%A

FOR %%A IN (c:\backupmysql\*) DO "C:\blat194\blatt.bat" %%A

On the command line:

FOR %A IN (c:\backupmysql\*) DO "C:\blat194\blatt.bat" %A

(only one %!)

blatt.bat

"C:\Installed by Tripany\blat194\blat" "c:\Installed by Tripany\blat194\hello.txt" -to red@tripany.com -s "Database backup %date%" -mime -base64 -attach %1

So the above command emails every file in c:\backupmysql\ to red@tripany.com using blat.

http://www.robvanderwoude.com/index.html