If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
|
Thread Tools | Rate Thread | Display Modes |
#1
|
|||
|
|||
Opening apps from the command line???
Hi All,
Anyone have an easier way to open an app from the command line than these two: https://www.tenforums.com/software-a...mand-line.html https://answers.microsoft.com/en-us/...4-80e40ed14675 Many thanks, -T |
Ads |
#2
|
|||
|
|||
Opening apps from the command line???
On Fri, 28 Dec 2018 16:43:23 -0800, T wrote:
Anyone have an easier way to open an app from the command line Start Run foo OK When I want to open any app from the command line, I simply add that app as a keyword to the "App Paths" key. HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths Since the "App Paths" key is a "Favorite" in my registry, I don't waste time looking for it when I start the registry editor. I select it from Favorites. Then I add the key. For example, let's say my desired app that I want to run is: C:\whatever\whatever\whatever\foo.bat Then I create this App Paths key (which, syntactically, must end with exe): foo.exe Then I set its value to the full path to whatever app I want it to run: default = C:\whatever\whatever\whatever\foo.bat To run it, I just type: Start Run foo OK This method has been working since Win95 days, AFAIR. |
#3
|
|||
|
|||
Opening apps from the command line???
On 12/28/18 7:18 PM, arlen holder wrote:
On Fri, 28 Dec 2018 16:43:23 -0800, T wrote: Anyone have an easier way to open an app from the command line Start Run foo OK When I want to open any app from the command line, I simply add that app as a keyword to the "App Paths" key. HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths Since the "App Paths" key is a "Favorite" in my registry, I don't waste time looking for it when I start the registry editor. I select it from Favorites. Then I add the key. For example, let's say my desired app that I want to run is: C:\whatever\whatever\whatever\foo.bat Then I create this App Paths key (which, syntactically, must end with exe): foo.exe Then I set its value to the full path to whatever app I want it to run: default = C:\whatever\whatever\whatever\foo.bat To run it, I just type: Start Run foo OK This method has been working since Win95 days, AFAIR. Cool! Thank you! |
#4
|
|||
|
|||
Opening apps from the command line???
arlen holder wrote:
On Fri, 28 Dec 2018 16:43:23 -0800, T wrote: Anyone have an easier way to open an app from the command line Start Run foo OK When I want to open any app from the command line, I simply add that app as a keyword to the "App Paths" key. HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths Since the "App Paths" key is a "Favorite" in my registry, I don't waste time looking for it when I start the registry editor. I select it from Favorites. Then I add the key. For example, let's say my desired app that I want to run is: C:\whatever\whatever\whatever\foo.bat Then I create this App Paths key (which, syntactically, must end with exe): foo.exe Then I set its value to the full path to whatever app I want it to run: default = C:\whatever\whatever\whatever\foo.bat To run it, I just type: Start Run foo OK This method has been working since Win95 days, AFAIR. I think Todd is referring to Metro Apps, which is not the same thing as a win32 program. There's a passing reference to the topic... here. The environment the Metro App runs in, is different. http://blogs.microsoft.co.il/pavely/...grammatically/ And Todd wants to do that from the command line, rather than from a GUI launcher. In a sense, a Metro App needs to be "launched" rather than "executed". There's a larger ceremony, a bottle of Champagne, a dry dock, and the Metro App slides down the dock and into the water. Paul |
#5
|
|||
|
|||
Opening apps from the command line???
On 12/28/18 11:17 PM, Paul wrote:
arlen holder wrote: On Fri, 28 Dec 2018 16:43:23 -0800, T wrote: Anyone have an easier way to open an app from the command line Start Run foo OK When I want to open any app from the command line, I simply add that app as a keyword to the "App Paths" key. HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths Since the "App Paths" key is a "Favorite" in my registry, I don't waste time looking for it when I start the registry editor. I select it from Favorites. Then I add the key. For example, let's say my desired app that I want to run is: Â*Â* C:\whatever\whatever\whatever\foo.bat Then I create this App Paths key (which, syntactically, must end with exe): Â*Â* foo.exe Then I set its value to the full path to whatever app I want it to run: Â*default = C:\whatever\whatever\whatever\foo.bat To run it, I just type: Â*Start Run foo OK This method has been working since Win95 days, AFAIR. I think Todd is referring to Metro Apps, which is not the same thing as a win32 program. There's a passing reference to the topic... here. The environment the Metro App runs in, is different. http://blogs.microsoft.co.il/pavely/...grammatically/ And Todd wants to do that from the command line, rather than from a GUI launcher. In a sense, a Metro App needs to be "launched" rather than "executed". There's a larger ceremony, a bottle of Champagne, a dry dock, and the Metro App slides down the dock and into the water. Â*Â* Paul It is the metro apps I am referring to |
#6
|
|||
|
|||
Opening apps from the command line???
On Sat, 29 Dec 2018 02:52:45 -0800, T wrote:
It is the metro apps I am referring to I apologize for leading the OP astray & recommend the OP follow Paul. Paul, as always, understands this stuff far better than I do. For example, he realized it was a "metro app" that you want to launch. The apps I was talking about are EVERYTHING else on a PC. (You know, the "normal" apps - like we've had since Win95 days.) I can't even "spell" Metro, since I use zero - by design. (What on earth is in Metro that isn't already outside of Metro?) I _hate_ everything that Metro is, and what it stands for. In fact, I can't even imagine why anyone would use _any_ Metro app. That having been said, it's clear the OP will need to follow Paul's advice. And not mine. My advice? If it's in Metro, why on earth use it? Metroi is a POS on top of a POS on top of a POS on top of a POS, is it not? My disdain for Metro being clear, I can't help, much as I'd like to help. So I advise the OP to listen to Paul, and to ignore anything I've said. Including this rant against Metro. -- PS: Seriously... Is there _anything_ in Metro that isn't already in "normal"? (I ididn't think _anyone_ uses Metro. You're my first.) |
#7
|
|||
|
|||
Opening apps from the command line???
On 12/29/18 06:34, arlen holder wrote:
On Sat, 29 Dec 2018 02:52:45 -0800, T wrote: It is the metro apps I am referring to I apologize for leading the OP astray & recommend the OP follow Paul. Paul, as always, understands this stuff far better than I do. For example, he realized it was a "metro app" that you want to launch. The apps I was talking about are EVERYTHING else on a PC. (You know, the "normal" apps - like we've had since Win95 days.) I can't even "spell" Metro, since I use zero - by design. (What on earth is in Metro that isn't already outside of Metro?) I _hate_ everything that Metro is, and what it stands for. In fact, I can't even imagine why anyone would use _any_ Metro app. That having been said, it's clear the OP will need to follow Paul's advice. And not mine. My advice? If it's in Metro, why on earth use it? Metroi is a POS on top of a POS on top of a POS on top of a POS, is it not? My disdain for Metro being clear, I can't help, much as I'd like to help. So I advise the OP to listen to Paul, and to ignore anything I've said. Including this rant against Metro. naw, the rant against "The Metro" is DESERVED. MORE than 'deserved' even. It is an abomination against all technology. It is a 2D FLATSO FLATASS FLATTY-FLAT-FLAT FLUGLY ****UP, excreted from the bowels of Micro-shaft's worst digestive horror, slapped with the name "modern", and _SHOVED_ _UP_ _THE_ _CUSTOMERS_' _ASSES_ like some kind of PUNISHMENT for NOT wholeheartedly EMBRACING the thing, because of Micro-shaft's ARROGANCE. And Google's. And to some extent, Apple's. And also Firefox with the 'Australis' ****. *I* *HATE* *THAT* *LOOK* !!! -- (aka 'Bombastic Bob' in case you wondered) 'Feeling with my fingers, and thinking with my brain' - me 'your story is so touching, but it sounds just like a lie' "Straighten up and fly right" |
#8
|
|||
|
|||
Opening apps from the command line???
arlen holder wrote:
On Sat, 29 Dec 2018 02:52:45 -0800, T wrote: It is the metro apps I am referring to I apologize for leading the OP astray & recommend the OP follow Paul. Paul, as always, understands this stuff far better than I do. For example, he realized it was a "metro app" that you want to launch. The apps I was talking about are EVERYTHING else on a PC. (You know, the "normal" apps - like we've had since Win95 days.) I can't even "spell" Metro, since I use zero - by design. (What on earth is in Metro that isn't already outside of Metro?) I _hate_ everything that Metro is, and what it stands for. In fact, I can't even imagine why anyone would use _any_ Metro app. That having been said, it's clear the OP will need to follow Paul's advice. And not mine. My advice? If it's in Metro, why on earth use it? Metroi is a POS on top of a POS on top of a POS on top of a POS, is it not? My disdain for Metro being clear, I can't help, much as I'd like to help. So I advise the OP to listen to Paul, and to ignore anything I've said. Including this rant against Metro. I don't think the Metro Apps (or whatever they're called this week) were designed for Command Line invocation. In one thread I found, someone was of the opinion that they didn't take command line arguments. Which would limit the utility of putting them in a batch file. Whether that's a hard and fast rule (no ARGC/ARGV) who knows. The link I found, shows how someone cobbled together a "GUI launcher". There is an API for starting the programs, so you will be able to launch from the command line - if you write a program to do it. For items which are URIs, apparently the start program will work start ms-edge: Or something similar to that. tenforums had psges of those. https://www.tenforums.com/tutorials/...dows-10-a.html And since there is one for Facebook, that means the "start" ones aren't limited to protocols as such. Already I'm feeling a bit of nausea at seeing these have shorthands. https://www.tenforums.com/tutorials/...dows-10-a.html Candy Crush Soda Saga candycrushsodasaga: Facebook fb: Twitter twitter: You could write a command line program, your own kind of "Start", but something which keeps a table of things to run, and then you would say, type in a shorthand. Something like todds-launcher mail and that would open the in-box Mail program rather than Outlook 365. Maybe it'll only take one (long) page of code to do that. And maybe you'd need Visual Studio, in case MinGW doesn't have the library available to do that. It could be that the calls are in some Windows 8/Windows 10 SDK. http://blogs.microsoft.co.il/pavely/...grammatically/ "After some searching, I found the IApplicationActivationManager COM interface, that seems to be the "right" way to launch Store apps." If you really want a command line launcher, that routine would be a key part of your implementation. I think at one point, I tried to run the .exe in a Metro App folder, and... nothing happened. It seemed to abort right away. It needs a bottle of Champagne and a proper sendoff. Paul |
#9
|
|||
|
|||
Opening apps from the command line???
On 12/29/18 6:34 AM, arlen holder wrote:
My advice? If it's in Metro, why on earth use it? Metroi is a POS on top of a POS on top of a POS on top of a POS, is it not? Agreed. Office 365 installs as a Metro App. :'( |
#10
|
|||
|
|||
Opening apps from the command line???
On 12/29/18 8:45 AM, Paul wrote:
Â*IÂ*triedÂ*toÂ*runÂ*theÂ*.exeÂ*inÂ*a MetroÂ*AppÂ*folder,Â*and...Â*nothingÂ*happened. Same experience with Word 365. Nothing happened |
#11
|
|||
|
|||
Opening apps from the command line???
On Fri, 28 Dec 2018 16:43:23 -0800, T wrote:
Hi All, Anyone have an easier way to open an app from the command line than these two: https://www.tenforums.com/software-a...mand-line.html https://answers.microsoft.com/en-us/...4-80e40ed14675 Built in command prompt. Many thanks, -T |
#12
|
|||
|
|||
Opening apps from the command line???
T wrote:
On 12/29/18 8:45 AM, Paul wrote: I tried to run the .exe in a Metro App folder, and... nothing happened. Same experience with Word 365. Nothing happened Information about Metro Apps is stored in a database. https://s8.postimg.cc/fd3htvlg5/sqli..._fix_first.gif In that example, I'm using "DB Browser for SQLite" (aka "SQLiteBrowser.exe") to examine the Windows 10 "StateRepository-Machine.srd". I made a copy of the file (offline) so I could look at it in peace. (Usually, your first problem will be finding it, as the naive searches Windows does, don't give results everywhere.) While there are Powershell commands to ferret out most of the information, if any more of those "colon" things were hiding, that's where I might take a look to get their names. The reason I was editing the Metro Repository info was in an attempt to delete MSEdge (part of a bar bet). All I succeeded in doing, was blanking an icon, and it was all still there. It's not really deleted. It's only a flesh wound. https://s8.postimg.cc/sh926ql9h/half_done.gif The only other thing I've seen in my travels, is there is a folder path with "VFS" as one of the path elements. That apparently stands for Virtual File System. In there, I was finding some sort of Office materials, even though I don't have any purchased or rented Office on the machine. When I wanted to delete the structure down there (as part of some other experiment), that area was virtually impossible to delete. CleanMgr could do it, as long as the folder in question was inside Windows.old. When CleanMgr cleans it, it is removed in a context-sensitive way. Some part of that VFS structure is a reparse point (custom file system feature), which means if you went at it with Linux, you'd most likely get "I/O Error" because Linux would not have code to handle whatever custom feature that is. Paul |
#13
|
|||
|
|||
Opening apps from the command line???
On 12/29/18 7:51 PM, Lucifer wrote:
On Fri, 28 Dec 2018 16:43:23 -0800, T wrote: Hi All, Anyone have an easier way to open an app from the command line than these two: https://www.tenforums.com/software-a...mand-line.html https://answers.microsoft.com/en-us/...4-80e40ed14675 Built in command prompt. Not following you. This is Metro apps I am after. |
#14
|
|||
|
|||
Opening apps from the command line???
On Sun, 30 Dec 2018 00:02:15 -0800, T wrote:
On 12/29/18 7:51 PM, Lucifer wrote: Not following you. There is no 29th month. On Fri, 28 Dec 2018 16:43:23 -0800, T wrote: Hi All, Anyone have an easier way to open an app from the command line than these two: https://www.tenforums.com/software-a...mand-line.html https://answers.microsoft.com/en-us/...4-80e40ed14675 Built in command prompt. Not following you. This is Metro apps I am after. Open command prompt. Type program name. Press enter. You're welcome. |
#15
|
|||
|
|||
Opening apps from the command line???
Lucifer wrote:
On Sun, 30 Dec 2018 00:02:15 -0800, T wrote: Not following you. This is Metro apps I am after. Open command prompt. Type program name. Press enter. You're welcome. OK, *you* open Command Prompt and try this. start ms-settings: And that will open the settings window. Now, try it your way... Without start. Open the Settings panel from the command line, doing it "your way". Paul |
|
Thread Tools | |
Display Modes | Rate This Thread |
|
|