Zbuby Posted September 7, 2006 Share Posted September 7, 2006 (edited) Hi all, (I'm french so i'm sorry for my speaking) I just want to know if is it possible to assoiacte file to a software with an autoit script ? I use PortableOpenoffice and when a file is saved and we want to open it, we have to right-click and open with ! thank you. ^^ Edited September 7, 2006 by Zbuby Link to comment Share on other sites More sharing options...
Daniel W. Posted September 7, 2006 Share Posted September 7, 2006 Forum Rules This is not a general support forum! --------------------------------------------------------------------------------------------------------------------------------Scripts : _Encrypt UDF_UniquePCCode UDF MS like calculatorInstall programm *UPDATED* --------------------------------------------------------------------------------------------------------------------------------[quote name='Helge' post='213117' date='Jul 26 2006, 10:22 AM']Have you ever tried surfing the internet with a milk-carton ?This is similar to what you're trying to do.[/quote] Link to comment Share on other sites More sharing options...
Pakku Posted September 7, 2006 Share Posted September 7, 2006 (edited) hi, first, you have posted this in the wrong place. second, as you said, it is portable so all the computers you are use with don't know that your software on your external harddisk or thumb drive or what ever is associated with an extension, to solfe this, you can do difficult but i think the easyest way is to first open (portable)openoffice.org and than open the file you want. to do it in the difficult way, it is possible to write a (autoit) script for it an last (but not least) your english isn't that bad (I'm from the netherlands) Edited November 16, 2010 by Pakku How can someone use Windows without using AutoIt?That one would properly don't know how to handle a computer!My scripts:Send files over internetKind of RSS reader3Draw ProUDF: convert a character string to a binary one and backCalculate PiCommand line downloader (Youtube/Google video)Set the transparency of a window just by hitting a key!Secure your pcOther things:My filemanMy profilePM me Link to comment Share on other sites More sharing options...
blademonkey Posted September 8, 2006 Share Posted September 8, 2006 Hi all, (I'm french so i'm sorry for my speaking)I just want to know if is it possible to assoiacte file to a software with an autoit script ?I use PortableOpenoffice and when a file is saved and we want to open it, we have to right-click and open with ! thank you.^^Tu pouras trouver la donnée de la fiche a cet endroit:HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExtsc'est simple. ---"Educate the Mind, Make Savage the Body" -Mao Tse Tung Link to comment Share on other sites More sharing options...
MHz Posted September 8, 2006 Share Posted September 8, 2006 Method using ftype and assoc. They make the registry refresh associations after use so you can open the file without needing to restart explorer. ; _FiletypeAssociation('.test', 'test', 'notepad "%1"', 'test description') Func _FiletypeAssociation($extension, $type, $program, $description = '') ; e.g. _FiletypeAssociation('.pdf', 'FoxitReader.Document', '"%ProgramFiles%\FoxitReader.exe" "%1"') $exitcode = RunWait(@ComSpec & ' /c ftype ' & $type & '=' & $program & _ ' && assoc ' & $extension & '=' & $type, '', @SW_HIDE) If $description And Not $exitcode Then Return RegWrite('HKCR\' & $type, '', 'Reg_sz', $description) EndIf Return Not $exitcode EndFunc Link to comment Share on other sites More sharing options...
Zbuby Posted September 8, 2006 Author Share Posted September 8, 2006 Thank you all And and i'm sorry to post my question here ! Link to comment Share on other sites More sharing options...
Thunder-man Posted April 27, 2007 Share Posted April 27, 2007 Method using ftype and assoc. They make the registry refresh associations after use so you can open the file without needing to restart explorer.Thank you, this I have looked.Can we also change the Icon?greetingFrank Link to comment Share on other sites More sharing options...
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