English
Forum

Doppelklicken on The File

 

Detlef
Jagolski
Hi,
one can Yes designed File Types one Program zuordnen with the tappt im dunkeln then opened go.

Bsp.:
.xls Doppelklicken on The File -> Excel open and data Show

1.) How can I my Program say, that it The Data from this File take should and displayed becomes?

2.) the one bestimmtes symbol (Icon) for Dateityp displayed becomes?
can me there someone help?

Greeting

Detlef
 
XProfan X4, PRFellow, Profan2Cpp - Version 2.0c-pre5, Windows 11
01/18/11  
 



Hi,

mean You vlt. The function ShellExec and because of the Icon something like here: [...]  ?
 
01/18/11  
 




Jörg
Sellmeyer
you mean, You want for your Program a File extension Register, so that later with a Double-click on so a File your Program called becomes, around the File to open?
For this are different Entries in the Registry necessary.

under "HKEY_CLASSES_ROOT" (HKEY_0) must You a Key produce, the your Endung corresponds to (with vorangestelltem .. there must one entry of type Zeichenkette present his, the on a further Key under HKEY_CLASSES_ROOT verweist. The is then xyzfile.
under this Key go against Unterschlüssel prepares:
- DefaultIcon (here becomes the Exploreransichtsicon tuned
- Shell
- - Open

on the best, you see you the times for whom type .txt on. this is crept and slight nachzuvollziehen.
You can also a File meineDatei.xyz create and then through "öffnen with..."And "Datei always of these Program öffnen" automatically a entry create let. If you the then from the Registry copy, know You, what You present must. thereby becomes then though The Bezeichnung autofile uses, The You by a selbstgewählte Bezeichnung supplant should.

you become probably Admin-rights for your Program need, if you such Entries distinguished want.

I hope, the helps you first time moreover. I Have in the momentum too none code for parat but writeini "HKEY_0",... is thereby your friend.

If you here time to "Registry" seek, find You a crowd Entries, The you help could.
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
01/18/11  
 




Jörg
Sellmeyer
so - Have time short what zusammengeschrieben:
CompileMarkSeparation
WriteIni "HKEY_0",".jsp",""="jspfile"
WriteIni "HKEY_0","jspfile",""="Mein Programm"
WriteIni "HKEY_0","jspfile\\DefaultIcon",""="%SystemRoot%\\system32\\shell32.dll,20"
'hier dann natürlich am Besten Dein Programmicon: "X:\\Mein\\Programm.exe,3"
WriteIni "HKEY_0","jspfile\\Shell",""="Meine Datei"
WriteIni "HKEY_0","jspfile\\shell\\open\\command",""="X:\\Mein\\Programm.exe \q%1\q"
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
01/18/11  
 




Detlef
Jagolski
Hello Jörg,

have the already for Word rausgefunden:

[HKEY_CLASSES_ROOT\.data]
@="datafile"

[HKEY_CLASSES_ROOT\datafile]
[HKEY_CLASSES_ROOT\datafile\Shell]
[HKEY_CLASSES_ROOT\datafile\Shell\Open]
[HKEY_CLASSES_ROOT\datafile\Shell\Open\Command]
@="\"C:\\programs\\Microsoft Office\\Office\\WINWORD.EXE\""

[HKEY_LOCAL_MACHINE\SOFTWARE]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.data]
@="datafile"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\datafile]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\datafile\Shell]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\datafile\Shell\Open]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\datafile\Shell\Open\Command]
@="\"C:\\programs\\Microsoft Office\\Office\\WINWORD.EXE\""

The question is yet what comes with The EXE on, one String with way?
and How becomes the of my Profan Program processing?
 
XProfan X4, PRFellow, Profan2Cpp - Version 2.0c-pre5, Windows 11
01/18/11  
 




Jörg
Sellmeyer
I see - Have I supra in the last row complement. your Program must then Par$(1) evaluate. this is then the Dateiname inklusive way. The File must You then properly whom Profanmitteln read (assign, blockread or Zeilenweise with Input #n)
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
01/18/11  
 




Detlef
Jagolski
Hello Jörg,

first thanks what about me will be time everything testing.
 
XProfan X4, PRFellow, Profan2Cpp - Version 2.0c-pre5, Windows 11
01/18/11  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

9.402 Views

Themeninformationen



Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie