Official BS.Player forums

Official BS.Player forums (http://forum.bsplayer.com/index.php)
-   Bug Reports And Codecs (http://forum.bsplayer.com/forumdisplay.php?f=10)
-   -   command line args bug? (http://forum.bsplayer.com/showthread.php?t=192)

alpha 7th July 2002 11:18 PM

command line args bug?
 
Hi,

I have made some shortcuts to movie files and now I am trying to utilize as parameters the command line args -fs and -stime=<whatever>. However, when the file runs, these arguments are having no effect. I also attempted using "start" in dos to run the files with these arguments and they also had no effect. My files are associated with BSPlayer and here is an example of the target in the shortcut file: "C:\video.mpg" -fs -stime=20.

Has anyone been able to successfully use the argument options? :?

Thanks,
Brian

xlv600 9th July 2002 03:36 PM

Yes it works. For instance, I've entered this on a command line:
"C:\Program Files\BSPlayer\BPlay.exe" "G:\D'Artagnan\Film.avi" -fs -stime=120
And it plays the movie fullscreen at time 0:02:00 from hard disk G.

For stime option to work, you've to uncheck "Remember last movie played", as this override the argument loaded from command line.

I've tested this with v0.85.488 under WinMe, in the Run command line from Startup windows menu, as a target of a Shortcut on the Desktop and even in a DOS shell prompt.

Can I help more?

alpha 12th July 2002 06:25 AM

Re:
 
You're right. I tried and it worked using the Start->Run and also through a .bat file. However, have you been able to make this work using a shortcut to a movie? I have associated my files with BSPlayer, and and an example of the target in the shortcut file: "C:\video.mpg" -fs -stime=20 but the args are not having any effect. I'm not sure of the reason, maybe unless you specify the .exe itself the command params are passed differently in windows? :?: Let me know if you can get a shortcut example to work.

Thanks,
Brian

Quietseb 12th July 2002 06:03 PM

Well if you don't specify the exe, what would the -fs -stime 30 be parameters for ?
If I understand correctly the way it works (and I'm not sure about it), opening a file with a program consists in sort of rewriting a new command line with the exe in it and the file as a parameter, then executing it. Then it goes back to what you've written in your shortcut.
If you put the exe in you shortcut, it opens the program and passes the parameters => it works
you would have the same result if you edited the opening properties of your avi files (in windows explorer -> tools -> folder options -> file types) and changing the command line from <<"path to bplay.exe" "%L">> to <<"path to bplay.exe" "%L" -fs -stime=120 >> and making a simple shortcut (or opening directly your film ;))

Well it seems I was in a mood for writing...
In short: put the path to the bplay.exe in your shortcut (just as you did in start->run..) and it will work


All times are GMT +1. The time now is 05:58 AM.

Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2
Ad Management plugin by RedTyger


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20