FHannes 1 Posted May 10, 2011 (edited) SCAR Divi 3.25 supports commandline interaction a whole lot better than any previous versions. There was a lot of demand for it, hence I decided to expand on it a bit. Aside from all previous commands now working properly, there's a few new ones. Here's a small guide: -nonews Prevents SCAR from downloading and displaying the news. -noupdate Prevents SCAR from checking for updates and showing an alert if an update is available. -open Opens all scripts specified after this parameter. -run Runs the script that was last opened. -tray Moves SCAR to the tray when it's opened or an open instance when single window mode is active. -force Forces open a new window when single window mode is enabled. The system is pretty flexible too. Any file that is in the parameters and not behind a specific parameter that takes file arguments (currently only -open), will be associated with -open. So you can for example open a file by running "scar.exe file.scar" instead of "scar.exe -open file.scar" I hope this thread was of use, if you have questions, be sure to post them in here. ~Freddy Edited December 5, 2011 by Freddy Quote Share this post Link to post Share on other sites
ti.teg.tnod.I 0 Posted May 10, 2011 Would "scar.exe -run file.scar" run "file.scar" or the script that was last opened? Or when you say last opened do you mean "scar.exe -run foo.scar bar.scar" would only run bar.scar? Quote Share this post Link to post Share on other sites
FHannes 1 Posted May 10, 2011 I'm fairly certain the first would run file.scar and the second bar.scar Quote Share this post Link to post Share on other sites
shadowrecon 10 Posted March 9, 2012 does this still work with the current scar version 3.31? Quote Share this post Link to post Share on other sites
shadowrecon 10 Posted April 28, 2012 When trying to use this with a file that is not located directly in the c drive or one or 2 folders away from the c drive it fails to open the folder. Example, if i try to use a file that is in my documents or something am i doing something wrong? I also have to specify the full path of the scar.exe Quote Share this post Link to post Share on other sites
FHannes 1 Posted April 28, 2012 You should always work with absolute file paths Quote Share this post Link to post Share on other sites
shadowrecon 10 Posted April 28, 2012 You should always work with absolute file paths Yeah i found the issue, if the name contained a space it caused the issue.. Which makes sence because in the commandline thats like a argument. I wonder if replacing the spaces with underscores would change the way it reacts. If there any way to get an absolute file path from a open dialog? lol Quote Share this post Link to post Share on other sites
FHannes 1 Posted April 28, 2012 Replacing spaces with underscores would get you a different path? Quote Share this post Link to post Share on other sites
shadowrecon 10 Posted April 28, 2012 Replacing spaces with underscores would get you a different path? Prob haven't messed with it, i just no the spaces are causing the issue. I guess i just have to play with it some. Quote Share this post Link to post Share on other sites
Bixby Sayz 4 Posted April 29, 2012 Most programs that accept command line parameters will accept a path wrapped in quotation marks. I imagine SCAR would too. Haven't tried it. "C:\Some Path\With Spaces\In It" Quote Share this post Link to post Share on other sites
shadowrecon 10 Posted April 29, 2012 (edited) hmm interesting ill give that a ago. Thanks Bixby! EDIT: Your are the man! That fixed the problem! now you can run any script anywhere on the computer with the client! =) Edited April 29, 2012 by shadowrecon Quote Share this post Link to post Share on other sites
FHannes 1 Posted April 29, 2012 Prob haven't messed with it, i just no the spaces are causing the issue. I guess i just have to play with it some. If you have spaces in your path you have to enclose your path in quotes, like with any other commandline command. Quote Share this post Link to post Share on other sites
shadowrecon 10 Posted April 29, 2012 If you have spaces in your path you have to enclose your path in quotes, like with any other commandline command. never really used the command line all that much before but got it under control now! Quote Share this post Link to post Share on other sites