A simple bat file template: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
(Created page with "A simple bat file template <pre> @ECHO OFF SETLOCAL EnableExtensions SET MY_DATETIME=%DATE%-%TIME% SET MY_FILENAME=%~n0 TITLE %MY_FILENAME% - %MY_DATETIME% REM Example script operations ECHO Starting script operations... REM Example of logging SET LOGFILE=%~dp0\%MY_FILENAME%.log ECHO [%MY_DATETIME%] Starting operations > "%LOGFILE%" REM Your actual script here ECHO This is where your actual script code would go >> "%LOGFILE%" REM Check for an error in your script i...")
Tags: Mobile edit Mobile web edit
 
mNo edit summary
Tags: Mobile edit Mobile web edit
 
(2 intermediate revisions by the same user not shown)
Line 32: Line 32:


</pre>
</pre>
[[Category: MS-DOS]] [[Category: Bash]] [[Category: Tool]]  [[Category: Templates]]

Navigation menu