Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- SETLOCAL EnableDelayedExpansion
- Set cmdowpath=PathToCmdow
- Set curpath=%cd%
- Del output.txt 2>nul
- pushd %cmdowpath%
- For /f "tokens=8,9" %%G in ('cmdow /t') do (
- If %%G==explorer echo %%H >>%curpath%output.txt
- )
- popd
- exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement