March 18, 200422 yr Hi all, i would like integer MPC to my windows XP and associate all video file to MPC! Is it possible ?Thx,Kal
March 18, 200422 yr start media player and go to help, command line switchesinteresting for you: /regvid
March 18, 200422 yr Author omg thx a lot guys !So, i put mplayerc.exe into $OEM$\$$\SYSTEM32 folder and insert this command in a cmd file called by cmd CMDLINES.TXT :mplayerc.exe /regvidAll right ? Kal
March 18, 200422 yr why dont you create a directory for MPC in $Progs and a shortcut in $Docs?So the MPC will be copied over to c:\Program Files\Media Player Classic (just an example)and yeah, just execute mplayerc.exe /regvid to register video files but i would run it after the windows setup using the guirunonce-based programs/batches
March 18, 200422 yr Author Simply because i dont know how to copy it in program files dir and dont know how to create shorcut in a cmd file Si this is the the easier way for meThx
March 18, 200422 yr you dont have to copy anything by hand or create shortcuts using batch files if you create a directory called $Progs inside $OEM$, all of its contents will be copied to your %ProgramFiles% directory during windows setup.the same with the $Docs directory inside $OEM$, it is linked to c:\documents and settings (example). so you just have to create directories called All Users\Startmenu in here and copy your shortcuts in.the only thing you have to regard is that the path of your shortcut uses the relative value %ProgramFiles%. example for that: "%ProgramFiles%\Media Player Classic\mplayerc.exe"of course you can do it as you wish but i wanted you to be informed about your possibilities at least a shortcut might be useful, even if you copy your mplayerc.exe to system32further information can be found @ http://unattended.msfn.org/xp/oemfolders.htm
March 18, 200422 yr Author Ok, this is my new structure :$OEM$\$Progs\Media Player Classic\mplayerc.exeNow, i want to create a shortcut for "%ProgramFiles%\Media Player Classic\mplayerc.exe. Is there a command to create a shortcut ?Thx a lot dud !
March 18, 200422 yr copy the directory to your current program files directory, rightclick the exe-file and select create a shortcut. rename it as you wish, rightclick it again, select properties and replace for instance c:\program files by %ProgramFiles%, also in the working directory.if it can apply it, everything should work. copy the shortcut to $Docs\All Users\Startmenu\Accessoires (for instance) and you should be done
March 18, 200422 yr very very nice eirogge.here i went through the trouble of creating a whole MSI to do the associations. Thank you very much
March 19, 200422 yr Author Well, i've trier to do this with an unattend install of win2k, and it seems that $Progs $Docs arent recognize by the setup system In fact, all folder into $Progs are not copied in program file folder etc..So i must use msdos to create folder etc This is the syntax of the batch file :-------------------------------------xcopy "%systemdrive%\INSTALL\MPC\mplayerc.exe" "%programfiles%\Media Player Classic\"cd "%systemdrive%\Program Files\Media Player Classic\"mplayerc.exe /regvid-------------------------------------I'm going to try this Thx anymore Kal
March 19, 200422 yr u can use xcopy "%systemdrive%\INSTALL\MPC\mplayerc.exe" "%programfiles%\Media Player Classic\" /I /S /Eit will create the directory for u
Create an account or sign in to comment