Simcfc73 Posted December 4, 2008 Posted December 4, 2008 Hi Guys, 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?
DrPerceptron Posted December 4, 2008 Posted December 4, 2008 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
OutToLunch Posted December 4, 2008 Posted December 4, 2008 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.
Simcfc73 Posted December 4, 2008 Author Posted December 4, 2008 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.
OutToLunch Posted December 4, 2008 Posted December 4, 2008 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.... 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. e.g, in a CMD window. assoc .otl=Outtolunch then 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 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now