@echo off
:: File: GoodMorning.Folders.hostname.cmd v1.0.0 docs at the end
:: go the run dir
cd %~dp0
:: this is the dir containing the batch file
set _MyDir=%CD%
for %%A in (%0) do set _MyDriveLetter=%%~dA
for %%A in (%0) do set _MyPath=%%~pA
for %%A in (%0) do set _MyName=%%~nA
for %%A in (%0) do set _MyExtension=%%~xA
set _CatFile=%_MyDir%\%_MyName%.cat
set _Program=explorer /n, /e,
:: CHECK THE VARS
set _
:: DEBUG
PAUSE
:: for each line of the cat file do perform an action ( in this case open folders)
for /f %%i in ('type "%_CatFile%"') do cmd /c start /max %_Program% "%%i"
:: DEBUG
PAUSE
:: Purpose:
:: to provide a generic stub starter fo.cmd files
::
:: Usage:
:: copy this file to a folder where you would like to start the development of th.cmd file
:: with some customer logic
:: create a .cmd_file_name>>.cat file with an item per like in the same directory
:: change the program name in the _Program var
::
:: VersionHistory:
:: 1.0.0 --- 2012-05-23 09:32:01 --- ysg -- Adapted from the cmd_stub
No comments:
Post a Comment
- the first minus - Comments have to be moderated because of the spammers
- the second minus - I am very lazy at moderating comments ... hardly find time ...
- the third minus - Short links are no good for security ...
- The REAL PLUS : Any critic and positive feedback is better than none, so your comments will be published sooner or later !!!!