Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.
Extension := '.avi'; Prog := 'C:\Program files\VideoLAN\VLC\vlc.exe'; procedure writeAssociation(Extension, Prog: string); var reg: TRegistry; Log: string; begin Log := ''; reg := TRegistry.Create; try try reg.RootKey := HKEY_CLASSES_ROOT; reg.LazyWrite := false; reg.OpenKey(Extension + '\shell\open\command', true); reg.WriteString('', Prog + ' %1'); reg.CloseKey; reg.OpenKey(Extension + '\DefaultIcon', true); reg.WriteString('', Prog + ',0'); reg.CloseKey; Log := 'File type ' + Extension + ' is now associated with ' + Prog; except Log := 'Association failed for file type ' + Extension; end; finally reg.free; end; mmo1.Lines.Add(Log); end;
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.