Most operating systems have an option when browsing the filesystem to open a specific file with an application that the user chooses. Of course, this means sending arguments to a program in one way or another, and that the programmer must add some way of recognizing these arguments and using them to process the data.
Questions tagged [open-with]
102 questions
1
vote
0 answers
create widget and make default app of TXT android app?
i do an android Editor app for editing texts. now i wish to do these:
create Widget from my app- as clicking my MainActivity/app starts.
put the app in open with list- the other *.txt file can open with mine. although is it need to use read file…
user4568864
1
vote
2 answers
How to add my app to "Open With" dialog?
I need my Android app to be in Open With dialog for SQLite files.
Like when you install new web-browser it will appears in Open With dialog for html-files.
How can I do that?

Tim Tolparov
- 79
- 1
- 9
1
vote
3 answers
Mimetype vs AppID
You see that it is adivsed to create your file with your app-specific mime type. Is it right way? I wonder because google drive somehow associates files with the application that created them for Open with functionality. Can this be exploited for…
user4275251
1
vote
2 answers
Android equivalent to 'Open With' dialog in iOS?
When I have a file in an app on my iOS device, I am able to open this file in other apps (which are registered for this file type), with a small dialog (src):
Is there an Android equivalent to this dialog?
And if there is, how can I access it with…

Clawish
- 2,934
- 3
- 24
- 28
1
vote
2 answers
Setting a .desktop file in CentOS/GNOME3
I have recently moved to CentOS7 and thus GNOME3. In Astronomy, we work with FITS images. These images are not recognized and by default they are opened with Gimp (which is not what we want!). The most common program to open such images is SAO ds9,…

makhlaghi
- 3,856
- 6
- 27
- 34
1
vote
0 answers
Does presentOpenInMenuFromRect close calling program?
I'm developing a PhoneGap Build application, but needed a way to prompt my user to open local files in Adobe Reader (inAppBrowser will not work for my situation). I found a 3rd party plugin for PhoneGap that does what I need. However it only does it…

RichP
- 525
- 1
- 10
- 25
1
vote
1 answer
c# open file always show "Open With" dialog
I have a c# application, which downloads a file, and should always show the Open With dialog, regardless if the extension is a known extension or not.
I tried
global::System.Diagnostics.Process.Start("rundll32.exe",
…

rekna
- 5,313
- 7
- 45
- 54
1
vote
2 answers
How can I set the name of my program in the Open With dialog?
I want the program to read VLC (Move on end):
I've modified my Assembly Info to the following, to no avail:
How can I alter the name displayed in the Open With dialog?

Danny Beckett
- 20,529
- 24
- 107
- 134
1
vote
1 answer
How to open multiple files using "open with" VB.net? (command line arguments)
I have an application that can read certain types of files, and I have it working so that if you do "open with" from windows, it automatically starts the application and opens the selected file.
Unfortnately, I cannot get it to work for more than…

Allen
- 927
- 8
- 19
0
votes
0 answers
Opening a Program with openwith dialog or arguments in Cpp,CLI WindowsForms
I made an image viewer app for learning purposes. I wanted to add a functional code for using the app with open with command in folders ,thus I added a argument code for it but the code seems to not work.Whenever I try to open it with the open with…

Ahmed
- 1
0
votes
3 answers
Bash: Name of directory from which file has been "opened as"
How can I put the directory (not full path) of the file which opened the script into a variable? I assume this is the same as $1, so I would like file's path to yield the same result when executed from terminal.
Explained;
#!/bin/bash
script.sh…

octosquidopus
- 3,517
- 8
- 35
- 53
0
votes
0 answers
How to make an application a default app for a particular file only, on windows 11?
I am trying open a particular .txt file from VSCode by default, but the only options I found were "making VSCode default application for all .txt files", or "right-clicking the file and selecting VSCode from Open With... submenu", which I dont want…

Newbie21
- 1
0
votes
1 answer
Task Scheduler launching OpenWith.exe for a JAR file
I have a JAR program that works fine when I manually run it, however, when I run it in Task Scheduler it will not run, on the history it keeps running OpenWith.exe as shown below:
Task Scheduler successfully completed task "\P&LAAT Export" ,…

KyleAT
- 71
- 1
- 8
0
votes
0 answers
How to implement "open with" in a notepad application
Getting straight to the point, I am basically creating a clone of notepad in java and I want to implement this functionality:
Assume I have a file like this with the .txt exention
I procede to right click and select the open with option, where…

Davide _-
- 63
- 1
- 5
0
votes
0 answers
How to open with a zip with a python program?
I wanted to program something where I can right click on a zip, do open with, and use my python program does something. How can I do that, that it knows what the path of the zip is when I do open with?

Niku
- 91
- 6