Solved Alternate parameters for opening filetype with program

PDXmatt

New member
Member
Local time
6:25 AM
Messages
57
Location
Portland, Oregon
There are some programs that I can't get to open a file by double-clicking on it. If I associate the filetype in the registry with shell\open\command: "Path\Program.exe" "%1" it just opens the program, but doesn't open the file. It's a problem I've had with numerous programs. I know many programs might have specific arguments they use, but I just want some general advice. What are some common parameters/arguments that might work with some of these programs? ("Path\Program.exe" "%L") ("Path\Program.exe" --started-from-file "%1") ("Path\Program.exe" /open "%L") ("Path\Program.exe" -run "%1") are some examples of what I'm looking for.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Lenovo ThinkCentre M58 7373
OS
Windows 7 Professional x64
CPU
Intel Core 2 Duo E7500 @ 2.93GHz
Motherboard
Lenovo 7373D1U
Memory
4 GB
Graphics Card(s)
Intel Q45/Q43 Express Chipset
Sound Card
High Definition Audio Device
Monitor(s) Displays
Compaq Q1859
Screen Resolution
1366X768
Hard Drives
WDC WD1600AAJS-08L7A0 130GB ATA
HGST HUS 726040ALE610 4TB HDD
Keyboard
Microsoft Comfort Curve 2000
Mouse
Logitech M100
Browser
Chrome
Other Info
Refurbished
Hi PDXmatt-

Go to Control Panel, Default Programs. There are a couple of ways of handling this.

Click on "Associate a file type............". You can look up the extensions that you want a particular program to open and set that program as the default.

Or, you can select "Set Default Programs" and select a program and set it to open all file types that it can open.

Does that help?
 

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Dell M6500 Precision Work Station
OS
Windows 7 Pro SP1 64 bit
Memory
8 GB
Screen Resolution
1920x
Internet Speed
30 Mbps
Antivirus
Norton Security
Browser
IE 11
There is no standard at all, each and every program has its own convention and parameters. If a specific program fails to do what you want, look at its command line documentation for the correct set of parameters. It may also be entirely possible that the program doesn't support command line interface at all and it's simply incapable of directly opening a file.

The most common way of doing it is precisely your example, simply passing the target file name as a parameter and nothing else. When doing a shot in the blind "Path\Program.exe" "%1" is always a good starting point.
 

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Toshiba Sattelite A665-S6092
OS
Windows 7 Ultimate x64
CPU
Intel Core i7-740QM
Memory
8 GB DDR3
Graphics Card(s)
NVIDIA GeForce 330GT
Screen Resolution
1366x768
Hard Drives
Samsung 840 SSD 500GB
1TB USB3 external HD
Cooling
Coolermaster Notepal U3 notebook cooling pad
Internet Speed
3mbps ASDL
Antivirus
ClamWin 0.98.7
Browser
Opera 12.17 x86 (main), Firefox 38 (sec), IE11 (last resort)
Hi PDXmatt-

Go to Control Panel, Default Programs. There are a couple of ways of handling this.

Click on "Associate a file type............". You can look up the extensions that you want a particular program to open and set that program as the default.

Or, you can select "Set Default Programs" and select a program and set it to open all file types that it can open.

Does that help?

Unfortunately that still just associates the filetype with the "Path\Program.exe" "%1" parameter, which I can do manually in the registry.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Lenovo ThinkCentre M58 7373
OS
Windows 7 Professional x64
CPU
Intel Core 2 Duo E7500 @ 2.93GHz
Motherboard
Lenovo 7373D1U
Memory
4 GB
Graphics Card(s)
Intel Q45/Q43 Express Chipset
Sound Card
High Definition Audio Device
Monitor(s) Displays
Compaq Q1859
Screen Resolution
1366X768
Hard Drives
WDC WD1600AAJS-08L7A0 130GB ATA
HGST HUS 726040ALE610 4TB HDD
Keyboard
Microsoft Comfort Curve 2000
Mouse
Logitech M100
Browser
Chrome
Other Info
Refurbished
There is no standard at all, each and every program has its own convention and parameters. If a specific program fails to do what you want, look at its command line documentation for the correct set of parameters. It may also be entirely possible that the program doesn't support command line interface at all and it's simply incapable of directly opening a file.

The most common way of doing it is precisely your example, simply passing the target file name as a parameter and nothing else. When doing a shot in the blind "Path\Program.exe" "%1" is always a good starting point.

Yeah, I noticed after searching "shell\open\command" in RegScanner that there isn't really any standard parameters other than "Path\Program.exe" "%1". The programs I've had trouble with never seem to have any commandline documentation, and searching on Google never helps. I think you're right that these programs just aren't able to directly open a file, which I figured was the case but I was hoping maybe there was a way.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Lenovo ThinkCentre M58 7373
OS
Windows 7 Professional x64
CPU
Intel Core 2 Duo E7500 @ 2.93GHz
Motherboard
Lenovo 7373D1U
Memory
4 GB
Graphics Card(s)
Intel Q45/Q43 Express Chipset
Sound Card
High Definition Audio Device
Monitor(s) Displays
Compaq Q1859
Screen Resolution
1366X768
Hard Drives
WDC WD1600AAJS-08L7A0 130GB ATA
HGST HUS 726040ALE610 4TB HDD
Keyboard
Microsoft Comfort Curve 2000
Mouse
Logitech M100
Browser
Chrome
Other Info
Refurbished
I assume you're inputting the path to/and actual .exe file for the program you're associating a file type with in the Control Panel, Default Programs. If you are, doesn't that file type open in it's associated program when you double click on it?

Perhaps I'm misunderstanding the problem.
 

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Dell M6500 Precision Work Station
OS
Windows 7 Pro SP1 64 bit
Memory
8 GB
Screen Resolution
1920x
Internet Speed
30 Mbps
Antivirus
Norton Security
Browser
IE 11
I assume you're inputting the path to/and actual .exe file for the program you're associating a file type with in the Control Panel, Default Programs. If you are, doesn't that file type open in it's associated program when you double click on it?

Perhaps I'm misunderstanding the problem.

What I mean is when you associate a file type with some programs it won't open the file with the program, it just opens the program by itself. I guess some programs just won't open files directly like that.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Lenovo ThinkCentre M58 7373
OS
Windows 7 Professional x64
CPU
Intel Core 2 Duo E7500 @ 2.93GHz
Motherboard
Lenovo 7373D1U
Memory
4 GB
Graphics Card(s)
Intel Q45/Q43 Express Chipset
Sound Card
High Definition Audio Device
Monitor(s) Displays
Compaq Q1859
Screen Resolution
1366X768
Hard Drives
WDC WD1600AAJS-08L7A0 130GB ATA
HGST HUS 726040ALE610 4TB HDD
Keyboard
Microsoft Comfort Curve 2000
Mouse
Logitech M100
Browser
Chrome
Other Info
Refurbished
Thanks. I missed that distinction.

For a problem program, go to Control Panel, Programs and Features. Click on the program and select Change. Select the Repair option and run it.

Does that help?
 

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Dell M6500 Precision Work Station
OS
Windows 7 Pro SP1 64 bit
Memory
8 GB
Screen Resolution
1920x
Internet Speed
30 Mbps
Antivirus
Norton Security
Browser
IE 11
Thanks. I missed that distinction.

For a problem program, go to Control Panel, Programs and Features. Click on the program and select Change. Select the Repair option and run it.

Does that help?

No, the issue is just getting the program to open files directly. Also the programs I have this problem with don't usually have installers anyway.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Lenovo ThinkCentre M58 7373
OS
Windows 7 Professional x64
CPU
Intel Core 2 Duo E7500 @ 2.93GHz
Motherboard
Lenovo 7373D1U
Memory
4 GB
Graphics Card(s)
Intel Q45/Q43 Express Chipset
Sound Card
High Definition Audio Device
Monitor(s) Displays
Compaq Q1859
Screen Resolution
1366X768
Hard Drives
WDC WD1600AAJS-08L7A0 130GB ATA
HGST HUS 726040ALE610 4TB HDD
Keyboard
Microsoft Comfort Curve 2000
Mouse
Logitech M100
Browser
Chrome
Other Info
Refurbished
Can you identify some of the programs that don't work as expected?
 

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Dell M6500 Precision Work Station
OS
Windows 7 Pro SP1 64 bit
Memory
8 GB
Screen Resolution
1920x
Internet Speed
30 Mbps
Antivirus
Norton Security
Browser
IE 11
Can you identify some of the programs that don't work as expected?

They were fairly obscure programs, it's not a big deal.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Lenovo ThinkCentre M58 7373
OS
Windows 7 Professional x64
CPU
Intel Core 2 Duo E7500 @ 2.93GHz
Motherboard
Lenovo 7373D1U
Memory
4 GB
Graphics Card(s)
Intel Q45/Q43 Express Chipset
Sound Card
High Definition Audio Device
Monitor(s) Displays
Compaq Q1859
Screen Resolution
1366X768
Hard Drives
WDC WD1600AAJS-08L7A0 130GB ATA
HGST HUS 726040ALE610 4TB HDD
Keyboard
Microsoft Comfort Curve 2000
Mouse
Logitech M100
Browser
Chrome
Other Info
Refurbished
Okay. Just thought I could try to duplicate your problem.
 

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Dell M6500 Precision Work Station
OS
Windows 7 Pro SP1 64 bit
Memory
8 GB
Screen Resolution
1920x
Internet Speed
30 Mbps
Antivirus
Norton Security
Browser
IE 11
Okay. Just thought I could try to duplicate your problem.

Thank you for trying to help! I'm pretty sure now that it's simply not possible with certain programs. I actually can't remember what programs they were now, it was only a few programs that had that problem.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Lenovo ThinkCentre M58 7373
OS
Windows 7 Professional x64
CPU
Intel Core 2 Duo E7500 @ 2.93GHz
Motherboard
Lenovo 7373D1U
Memory
4 GB
Graphics Card(s)
Intel Q45/Q43 Express Chipset
Sound Card
High Definition Audio Device
Monitor(s) Displays
Compaq Q1859
Screen Resolution
1366X768
Hard Drives
WDC WD1600AAJS-08L7A0 130GB ATA
HGST HUS 726040ALE610 4TB HDD
Keyboard
Microsoft Comfort Curve 2000
Mouse
Logitech M100
Browser
Chrome
Other Info
Refurbished
You have a short memory. :-) I'm well into my senior years so, purportedly, I have an excuse.;)

A few posts back you said you were hoping there was a way to get it to work with those programs.
 

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Dell M6500 Precision Work Station
OS
Windows 7 Pro SP1 64 bit
Memory
8 GB
Screen Resolution
1920x
Internet Speed
30 Mbps
Antivirus
Norton Security
Browser
IE 11
I indeed have an extremely poor short-term memory, part of it is that I'm constantly downloading and messing around with programs, I've probably gone through at least 100 programs since I originally created this thread. One of the programs I was talking about was this BDF (Glyph Bitmap Distribution Format) font viewer, it can open this BDF file but not by double-clicking it.
 

Attachments

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Lenovo ThinkCentre M58 7373
OS
Windows 7 Professional x64
CPU
Intel Core 2 Duo E7500 @ 2.93GHz
Motherboard
Lenovo 7373D1U
Memory
4 GB
Graphics Card(s)
Intel Q45/Q43 Express Chipset
Sound Card
High Definition Audio Device
Monitor(s) Displays
Compaq Q1859
Screen Resolution
1366X768
Hard Drives
WDC WD1600AAJS-08L7A0 130GB ATA
HGST HUS 726040ALE610 4TB HDD
Keyboard
Microsoft Comfort Curve 2000
Mouse
Logitech M100
Browser
Chrome
Other Info
Refurbished
Thanks- that provides a better explanation of the problem.

Even though the program is not installed, one can set Windows to open .bdf and, I assume, font files with it. However, the program requires one to select a file to open from within the program. I don't know how you can get around that unless one writes some kind of batch file which would select File\Open when the program is launched by double clicking on a file and insert that file.
 

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Dell M6500 Precision Work Station
OS
Windows 7 Pro SP1 64 bit
Memory
8 GB
Screen Resolution
1920x
Internet Speed
30 Mbps
Antivirus
Norton Security
Browser
IE 11
Thanks- that provides a better explanation of the problem.

Even though the program is not installed, one can set Windows to open .bdf and, I assume, font files with it. However, the program requires one to select a file to open from within the program. I don't know how you can get around that unless one writes some kind of batch file which would select File\Open when the program is launched by double clicking on a file and insert that file.

Yeah, that's the problem with all the programs I was talking about. They only let you open files from within the program, setting windows to open files with it just opens the program. There most likely isn't any way around it, it's not a big deal. Thanks for your help though.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Lenovo ThinkCentre M58 7373
OS
Windows 7 Professional x64
CPU
Intel Core 2 Duo E7500 @ 2.93GHz
Motherboard
Lenovo 7373D1U
Memory
4 GB
Graphics Card(s)
Intel Q45/Q43 Express Chipset
Sound Card
High Definition Audio Device
Monitor(s) Displays
Compaq Q1859
Screen Resolution
1366X768
Hard Drives
WDC WD1600AAJS-08L7A0 130GB ATA
HGST HUS 726040ALE610 4TB HDD
Keyboard
Microsoft Comfort Curve 2000
Mouse
Logitech M100
Browser
Chrome
Other Info
Refurbished
Sorry we couldn't solve that in some easy manner.
 

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Dell M6500 Precision Work Station
OS
Windows 7 Pro SP1 64 bit
Memory
8 GB
Screen Resolution
1920x
Internet Speed
30 Mbps
Antivirus
Norton Security
Browser
IE 11
Back
Top