W
W
WasTabon2021-08-27 00:40:00
Windows
WasTabon, 2021-08-27 00:40:00

How can I make a personal extension for a file so that it works like exe?

For example, I want to make a file that will be called name.qnahabr
and that at startup it will run as the same regular exe
Is this even possible?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
U
urm0m8f, 2021-08-27
@WasTabon

from under the administrator in the command line

assoc .qnahabr=myexefile
ftype myexefile="%1" %*

also, extensions *.pif *.exe *.com are absolutely equivalent.
*.scr - almost, the /S key is added there.
c:\>assoc .exe
.exe=exefile

c:\>ftype exefile
exefile="%1" %*

c:\>assoc .pif
.pif=piffile

c:\>ftype piffile
piffile="%1" %*

c:\>assoc .scr
.scr=scrfile

c:\>ftype scrfile
scrfile="%1" /S

H
Hemul GM, 2021-08-27
@HemulGM

Yes, it's possible. It is enough to register the extension in the system and assign a handler program to it. You open pictures somehow, don't you?
So google "how to register your extension". You can also assign an icon there.

S
Stepan, 2014-07-05
@followthemoney

that is, transfer a certain number of bytes to the site page

You do not need to send bytes, but send a regular POST request with data.
developer.android.com/reference/org/apache/http/cl...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question