Dialog box Filter .txt

November 13, 2017 at 23:40:29
Specs: Windows 10
Hello

I have this code in my bat file.

set dialog="about:<input type=file id=FILE><script>FILE.click();new ActiveXObject
set dialog=%dialog%('Scripting.FileSystemObject').GetStandardStream(1).WriteLine(FILE.value);
set dialog=%dialog%close();resizeTo(0,0);</script>"

for /f "tokens=* delims=" %%p in ('mshta.exe %dialog%') do set "file=%%p"
echo selected file is : "%file%"


on this Window can use all files *.* . i need only .txt.

At the point where it is yellow I just want only ".txt"

PIC:
https://www1.xup.in/exec/ximg.php?f...


Regards


See More: Dialog box Filter .txt

Reply ↓  Report •

#1
November 14, 2017 at 11:10:25
You can't with that technique. There are various VBScripts out there, but none of them seem to both work on my Win7 box, and give you the customization you're looking for. You could go PowerShell, but that'd limit you to Win7 and up.

How To Ask Questions The Smart Way


Reply ↓  Report •
Related Solutions


Ask Question