Jag har ett konsol (kommandotolks) program som jag vill kunna klicka på dess ikon direkt i windows, utan att behöva öppna det med kommando tolken för att få fönstret att stanna kvar.
5. Save this file on your desktop or some favorite temp directory. Name it "doswin.reg"
6. Right click on "doswin.reg" and select the "Merge" option at the top of the menu.
Now, open up Windows Explorer, locate a directory that you want a console window to open to, either on the left hand tree or in the right hand list, right click on the folder icon so that the context menu pops up, select "Open Console" and voila! A console pops up opened to that folder.
To keep from forgetting those instructions, I put a truncated version of them inside the "doswin.cmd" bat file, like so:
@Echo off
CD /D %1
Title %~f1
:: Add these keys to the registry
::[HKEY_CLASSES_ROOT\Folder\shell\Open Console]
::[HKEY_CLASSES_ROOT\Folder\shell\Open Console\command]
::@="Cmd.exe /A /K Doswin.cmd \"%L\""
:: Put this batfile in C:\WINNT\
410 ms totalt · 4 externa anrop · v20260731065814-full.d34c6d5a