For loops: Difference between revisions
Jump to navigation
Jump to search
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... |
No edit summary |
||
Line 14: | Line 14: | ||
blatt.bat | blatt.bat | ||
"C:\Installed by | "C:\Installed by xxx\blat194\blat" "c:\Installed by xxx\blat194\hello.txt" -to red@email.com -s "Database backup %date%" -mime -base64 -attach %1 | ||
So the above command emails every file in c:\backupmysql\ to red@ | So the above command emails every file in c:\backupmysql\ to red@email.com using blat. | ||
http://www.robvanderwoude.com/index.html | http://www.robvanderwoude.com/index.html | ||
</pre> | </pre> |
Latest revision as of 10:18, 14 November 2016
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 xxx\blat194\blat" "c:\Installed by xxx\blat194\hello.txt" -to red@email.com -s "Database backup %date%" -mime -base64 -attach %1 So the above command emails every file in c:\backupmysql\ to red@email.com using blat. http://www.robvanderwoude.com/index.html