How to create files.ext from .txt??

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
HugoCar
Posts: 2
Joined: 05 Sep 2020 11:24

How to create files.ext from .txt??

#1 Post by HugoCar » 05 Sep 2020 22:02

Hi for all...!!!

I'm a new in this forum...and I would like creater diferent files.exte from .txt

The structure of txt file:
.fdf, AdobeReaderPortable.fdf
.pdf, AdobeReaderPortable.pdf
.pdfxml, AdobeReaderPortable.pdfxml
.pdx, AdobeReaderPortable.pdx
.xdp, AdobeReaderPortable.xdp
.xfdf, AdobeReaderPortable.xfdf


and I would like create files.ext
AdobeReaderPortable.fdf
AdobeReaderPortable.pdf
AdobeReaderPortable.pdfxml
AdobeReaderPortable.pdx
AdobeReaderPortable.xdp
AdobeReaderPortable.xfdf

Is possible create a batch to make it??


Thanks

penpen
Expert
Posts: 1864
Joined: 23 Jun 2013 06:15
Location: Germany

Re: How to create files.ext from .txt??

#2 Post by penpen » 06 Sep 2020 07:41

Sorry, but i don't understand, what you are asking for.

aGerman
Expert
Posts: 3971
Joined: 22 Jan 2010 18:01
Location: Germany

Re: How to create files.ext from .txt??

#3 Post by aGerman » 06 Sep 2020 07:50

Probably something like that (provided the name of the text file is "test.txt"):

Code: Select all

for /f "usebackq tokens=1* delims=, " %%i in ("test.txt") do >"%%j" type nul
Of course the files are empty. How should we know what content is expected ...

Steffen

HugoCar
Posts: 2
Joined: 05 Sep 2020 11:24

Re: How to create files.ext from .txt??

#4 Post by HugoCar » 06 Sep 2020 10:41

Hi...

I am configuring my portable applications so that windows10 believes that they are installed and so I can set them as default ... everything works very well for me ... but I wanted to make sure that each extension has its corresponding icon

In Adobe Reader there are only 4 different ones and I can create them by hand ... but Office ... Winamp ... VLC ... 7-zip .... there are too many extensions to do them by hand


It's perfect ... just what I needed ... and with a few characters !!! ... you've saved me a lot of tedious work !!
Many thanks!!

Post Reply