Something like:
Code: Select all
@echo off
for /f "tokens=1,2,3 delims=/" %%a in ('echo %date%') do set foo=%%c %%b %%a
for %%a in (*.*) do ren "%%a" "%foo% - %%a"
Would append the date to the start of all files in the dir it is executed in.
Code: Select all
@echo off
for /f "tokens=1,2,3 delims=/" %%a in ('echo %date%') do set foo=%%c %%b %%a
for %%a in (*.*) do ren "%%a" "%foo% - %%a"
Code: Select all
start /min cmd /c your-batch-file.bat
Code: Select all
reg query HKEY_CLASSES_ROOT\.php 1>nul 2>nul
if errorlevel 1 echo not found