kal Posted March 18, 2004 Share Posted March 18, 2004 Hi all, i would like integer MPC to my windows XP and associate all video file to MPC! Is it possible ?Thx,Kal Link to comment Share on other sites More sharing options...
eirogge Posted March 18, 2004 Share Posted March 18, 2004 start media player and go to help, command line switchesinteresting for you: /regvid Link to comment Share on other sites More sharing options...
Aaron Posted March 18, 2004 Share Posted March 18, 2004 Didn't spot that, thanks eirogge! Link to comment Share on other sites More sharing options...
eirogge Posted March 18, 2004 Share Posted March 18, 2004 no problem for all people that are too lazy to read: /regaud is possible, too Link to comment Share on other sites More sharing options...
kal Posted March 18, 2004 Author Share Posted March 18, 2004 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 Link to comment Share on other sites More sharing options...
eirogge Posted March 18, 2004 Share Posted March 18, 2004 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 Link to comment Share on other sites More sharing options...
kal Posted March 18, 2004 Author Share Posted March 18, 2004 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 Link to comment Share on other sites More sharing options...
eirogge Posted March 18, 2004 Share Posted March 18, 2004 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 Link to comment Share on other sites More sharing options...
kal Posted March 18, 2004 Author Share Posted March 18, 2004 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 ! Link to comment Share on other sites More sharing options...
eirogge Posted March 18, 2004 Share Posted March 18, 2004 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 Link to comment Share on other sites More sharing options...
Alanoll Posted March 18, 2004 Share Posted March 18, 2004 very very nice eirogge.here i went through the trouble of creating a whole MSI to do the associations. Thank you very much Link to comment Share on other sites More sharing options...
kal Posted March 19, 2004 Author Share Posted March 19, 2004 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 Link to comment Share on other sites More sharing options...
eirogge Posted March 19, 2004 Share Posted March 19, 2004 we were allways talking about wxp i'm sorry Link to comment Share on other sites More sharing options...
XtremeMaC Posted March 19, 2004 Share Posted March 19, 2004 u can use xcopy "%systemdrive%\INSTALL\MPC\mplayerc.exe" "%programfiles%\Media Player Classic\" /I /S /Eit will create the directory for u Link to comment Share on other sites More sharing options...
kal Posted March 19, 2004 Author Share Posted March 19, 2004 we were allways talking about wxp i'm sorrylol no problem dud 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