or what you are looking for is :
Code: Select all
dir /adh /b /s
Code: Select all
dir /adh /b /s
Code: Select all
for %%a in (s n 10) do IF /I "%%a"=="%var1%" (do X) ELSE (do Y)
Code: Select all
echo %date:~-4%%date:~-7,2%%date:~-10,2%%time:~0,2%%time:~3,2%
Code: Select all
@echo off
SETLOCAL ENABLEDELAYEDEXPANSION
for /f "tokens=* delims=" %%X in ('dir /ad /b') do (
for /f "tokens=3 delims=_" %%A IN ("%%X") do (
echo %%A
set version=%%A
echo !version!
)
Code: Select all
for %%a in ("%temp2:\=" "%") do @set folder2=%%~a
echo.%folder2%
aGerman wrote:This would work for me as well:
Code:
@echo off &setlocal
for %%a in ("%path:;=" "%") do echo %%~a
pause
Code: Select all
open login:pass@194.154.80.6:21 -passive