?login_element?
?pathlinks? – Rev 922
Rev 289 |
Blame |
Compare with Previous |
Last modification |
View Log
| Download
set SCRIPTFILE=script.tmp
echo Scanning directory "
%SOURCEDIR%"...
rem disk:/path/file
if not "
!j:
%SOURCEDIR%=
!"==""
echo mkdir !j:
%SOURCEDIR%=
!>> %SCRIPTFILE%
)
for /r
%SOURCEDIR% %%i in (*.*
) do (
echo put
%%i !j:
%SOURCEDIR%=
!>> %SCRIPTFILE%
)
echo Nothing to add - skipping. File "
%IMAGEFILE%" was
not modified.
)
echo Adding files from directory "
%SOURCEDIR%" to the image "
%IMAGEFILE%"...
%DMIMG% %IMAGEFILE% conf %SCRIPTFILE%
echo File "
%IMAGEFILE%" is successfully updated.
:usage
echo %~nx0 IMAGE_FILE SOURCE_DIR
echo IMAGE_FILE is an image file, supported by "dmimg".
echo SOURCE_DIR is a source directory to add files from.