Read Command-Line Arguments from a File on Startup
-
launcher.exe @filename doesn't seem to work. I see on the net that @filename is supported by some programs (command-line utilities) though.
-
That is why I said "in Linux" ... but it may be an idea for Vivaldi (and possibly Opera).
-
The Windows commands assoc and ftype might be able to add additional options to open files in combination without hacking the registry (basically they do it for you), however I see problems with an already running instance of Vivaldi in certain cases (profile conflicts etc. pp.)
For help type assoc /? or ftype /? in a CMD window - but be warned, there is no safety net in the CMD. If you mess things up in the CMD, things are messed up afterwards.
For my own use I don't associate filetypes to open but have created small command scripts that can take files/urls/whatever Vivaldi can open as command line parameter (some even by drag and drop), open Vivaldi with different profiles and clean up after exit or not, depends what they should do. This is quite powerful but definitely not what I would call user friendly ...
(With a few exceptions I generally do not associate such things because I would need to manually remove all stuff afterwards if I change things - I am too lazy to do that, therefore I prefer normal CMD scripts: Delete and everything is gone )
-
What I'm doing right now for Opera is, I rename its launcher.exe to reallauncher.exe. Then, I have my own launcher.exe that I put in place of the real one. It accepts args passed to it, adds the ones I want and then passes them all to reallauncher.exe. That works and it's not too bad to do it again on Opera update. Not sure if that'll work for Vivadli though as it doesn't use a launcher exactly and renaming vivaldi.exe might not work.
-
Different Idea: Do you still remember the good old sendTo?
Just type sendTo into the address bar of the explorer, press enter and add shortcuts to Vivaldi there. You can right-click edit the shortcuts to contain all kinds of command line parameters like you can do any other shortcut.To invoke it just right-click on the file or url you want to open, select "send to" and click on the shortcut.
Yes, it is 2 clicks and some movement but it should be fine as long as you don't open such stuff all the time - and you don't have to mess with the CMD console or regedit.
-
Here's an example for Vivaldi: https://forums.opera.com/post/147972.
-
Under Windows, you can use mklink, to create a symbolic link.
-
@dermitdemdino How can that help in this situation?
-
@burnout426 You can set a symbolik link, that vivaldi.exe is start permanently with your parameters. I don't have a Windows system for testing, though, because I use Linux.
-
@dermitdemdino Okay, I'll look into that. Thanks.
-
Thank you for your request. As it has received few votes over 4 years, it is now going to be archived.
-