Search found 2 matches

by hlhp
24 Sep 2019 03:59
Forum: DOS Batch Forum
Topic: How to get .ext ftype into variable
Replies: 2
Views: 1411

Re: How to get .ext ftype into variable

penpen wrote:
24 Sep 2019 01:52
thank you penpen, it works.
I modified a little bit

Code: Select all

@echo off
FOR /F "delims== tokens=2" %%G IN ('assoc .gif') DO set temp1=%%G
echo %temp1%
pause
by hlhp
24 Sep 2019 00:34
Forum: DOS Batch Forum
Topic: How to get .ext ftype into variable
Replies: 2
Views: 1411

How to get .ext ftype into variable

I want to create a batch to change extensions icon without chaning the ftype.

I can find ftype by

Code: Select all

assoc .png
output is

Code: Select all

.gif=Honeyview.gif
How can I extract the Honeyview.gif to a variable, then I can use it change the registry.