Mofi David Mills David Mills 1 1 gold badge 1 1 silver badge 3 3 bronze badges. Why don't you pass the path of the default browser? Yeikel - How would he know what the default browser is set to? Well there you go. I've been trying to figure out the best way to parse the req query for getting the default browser but it's different on Windows 10 vs Windows XP and I don't know what OS is being used.
Therefore 01 is an invalid anchor in HTML 4. Show 1 more comment. Active Oldest Votes. On my Windows 8. Anders Anders Did you try with a local file? Even if the title doesn't request it, his example with the local file seems to be unsolvable with default unknown browser.
Using start. Add a comment. Sweet Sheep Sweet Sheep 2 2 bronze badges. The UserChoice key is relatively new and I'm not sure if it exists on Windows 7. The open verb is not necessarily the correct verb under the shell key but for the http progid it will be for Doing this registry lookup correctly in a batch file is basically impossible but it should be good enough for most people if you just hardcode http as the progid if UserChoice is not there To open file from cmd Type: start "index.
However the program has to keep running to hold the properties dialog open. It keeps running by displaying a message box. CreateObject "WScript. FileSystemObject" If Ag. Learn more. Ask Question. Asked 11 years, 9 months ago. Active 1 year, 1 month ago. Viewed k times. Add a comment. Active Oldest Votes. Chris Thornton Chris Thornton This worked like a charm, except when I run the batch file, GNUPlot flickers on the screen and then shuts off immediately.
I tried adding "pause" to the batch file but that didn't do anything. Try this: go to a command prompt, and see if you can get it to work. How would you open a file with a specific program? Like the "Open with" option. Etamar Laron Etamar Laron 1, 10 10 silver badges 22 22 bronze badges. CDub When you open a 'txt' file now, it will open the file with 'textpad. Hope this is useful. Jason D. That program would need to have a specific API that you can use from the command line.
Marcus Leon Marcus Leon You can simply call program "file" from the batch file for the vast majority of programs. Joey Joey k 80 80 gold badges silver badges bronze badges. In that case you can probably use start alone on the PDF files as well. Depending on the default application for them, though : — Joey. For me it works even without the start command. Kurt Pfeifle Kurt Pfeifle Have you tried whether Acrobat Reader allows for more files on the commandline, ie.
Thank you! For some reason start acrord I rally appreciate your answers. Thanks for the above answers. Feroz Feroz 1. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Stack Gives Back
0コメント