- Home /
Check from which file an application was opened with?
Hey there, community!
So, I know how to open a Windows file with any (unity) program. What I want to know is how to get the file my application was opened with (programmatically, inside Unity).
Answer by Bunny83 · Dec 11, 2016 at 10:55 AM
I'm not sure if i got the question right, but it sounds like you want to know the command line parameters of a running program. For that:
open the TaskManager
go to the Details tab
Right click any where on the table header of the detail list view.
select "Show Columns" (Spalten auswählen)
Scroll down and make sure "Commandline" (Befehlszeile) has a checkmark
Just check that column for the running program and you should see additional parameters behind the application path
However this does not work for applications that use DDE to pass the file(s) to an application. This is usually the case if an application can open multiple files at once.
However, i'm not sure how this question is actually related to game development with Unity?
Your answer
Follow this Question
Related Questions
Using EditorUtility.OpenFilePanel outside editor? 1 Answer
Create image-file from resources image 1 Answer
I want to launch the application by double clicking on the saved original file. 0 Answers
Create JPG to HDD from Image In Assets-Folder 0 Answers
How can I start a process to open Finder to point to a file? 1 Answer