Quantcast
Channel: Microsoft forum - dslreports.com
Viewing all articles
Browse latest Browse all 8524

this BAT fails if there are spaces in files - easy fix?

$
0
0
I have a BAT that I run it goes to folder and findes that last modified file and it gets the name and opens it (and c:\z\ClipCopy.exe can put the path into the clipboard) well my Video Player when capturing screen shots - files have spaces :/ and this upsets the script :/ any way to fix this? thanks .. REM @echo offcd /d C:\y\_captures dir /od /b > %temp%\latest.txtfor /F %%a in (%temp%\latest.txt) do set LATEST_FILE=%%aprint %LATEST_FILE%c:\z\ClipCopy.exe "C:\y\_captures\%LATEST_FILE%"C:\y\_captures\%LATEST_FILE%REM pause

Viewing all articles
Browse latest Browse all 8524

Trending Articles