XP File Association
We use an old version of Pic Logicator which doesn't make a file association with the PFL files it uses so users have to browse.
Found it in the registry when I make a new one in Current User so tried copying it to the local machine but it didn't work. And I have just checked and it vanished when I rebooted anyway.
Anyone know how to hardcode it in via a script or a batch file?
Quickest and "cheapest" way of doing it would be to find the registry keys you want to add, export the key from regedit to a .reg file
then in a batch file, have
regedit /s file.reg
Or even quicker - you want the 'ASSOC' and 'FTYPE' commands in a batch file.
Assoc creates a file association/name, ftype sets up what program to load a particular filetype with.
I tried the ASSOC before, I added ASSOC PLF = PIC LOGICATOR FILE but it didn't open the program when I clicked a PLF file.... could it be cos its really old?
The registry entry thing didn't work with the local machine, I found loads more entires so need to copy all I can find and see which ones work.
After using ASSOC for the association, you also need FTYPE for the executable path to open that association with. Assoc just gives it a nice tidy name, Ftype says what to open that name with.
Originally Posted by Simcfc73
e.g, in a CMD window.
ftype outtolunch=notepad.exe %1
Now create a blank file with the extension of .otl and click it - it should open in Notepad.
So you'd need
ftype "PIC LOGICATOR FILE"="pathtopiclogicator.exe" %1