Page 1 of 1

How to create files.ext from .txt??

Posted: 05 Sep 2020 22:02
by HugoCar
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

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

Posted: 06 Sep 2020 07:41
by penpen
Sorry, but i don't understand, what you are asking for.

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

Posted: 06 Sep 2020 07:50
by aGerman
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

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

Posted: 06 Sep 2020 10:41
by HugoCar
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!!