Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Help required in creating a batch file...
In the batch file i need to run "whoami" the
result of which is like this "domain/liju".I need to filter out only he word "liju" and
create a folder called "liju" if the folder doesn't
exist.later I need to move certain files into the folder.

@echo off & setLocal EnableDELAYedExpansion
for /f "tokens=2 delims=/" %%a in (whoami.txt) do (
set var=%%a
)
echo !var!
=====================================
Helping others achieve escape felicityM2

![]() |
![]() |
![]() |
| Login or Register to Reply | |
| Login | Register |
| Ads by Google |