vb.net How to get the file URL that started the program - vb.net

I am developing a media player based on the WMP Engine.
When I am setting it as a default program to open a video or audio file, then double-click at such a file, the program will open but it will not have the file loaded.
How can I get the file URL that the user double-clicked and caused my program to open?

Related

How to block the file chooser in Firefox?

I'm developing an application that uses Selenium for automation of a certain process that involves file upload.
There is a button on that website that executes some ajax which loads in the file input element, but also tries to open file chooser for some reason.
In Chrome it works fine - the file chooser is blocked (message from the console: File chooser dialog can only be shown with a user activation.).
The problem is that I can't block it in Firefox. I looked through about:config and found nothing useful.
So how do I block it?

Open a downloaded file with a third party application

I have an application that allows users to download files from the server, these files can be pretty much anything.
I am at the point where a user is able to download a file to their phone but I can not figure out how to allow the user to open the files from the app, for example say a user has download a word file (.docx), when they select the file in my application I want the file to either open in the default .docx viewer or present the user with applications that can open the file. (Similar to how WhatsApp handles it)
I have tried using Linking.openURL('file:///pathtofile/filename.docx') but I get an error saying Could not open URL file:///pathtofile/filename.docx, exposed beyond app through Intent.getData()
I'm currently using Expo and would much prefer not to have to detach my app.
Update:
I ended up detaching from Expo and built native modules to handle this.

how to download xls file from website without file name and extension in URL?

I want to download a file from the website:
http://www.trademap.org/Country_SelProduct_TS.aspx?nvpm=1|||||TOTAL|||2|1|1|1|2|1|2|1|1
no filename and extension in the URL. on webpage, excel icon (up-left) has to be on-clicked and then the browser savedfiledialog opens. how to automate this and save the file in pc without browser, from vb.net?
can it be done by webclient.downloadfile?
thanks

Can I open any Application with this code in windows phone?

I would like to programmatically open an app in windows phone.
i found the following code to open an excel file:
var wbt = new WebBrowserTask();
wbt.URL = "http://example.com/file.xlsx";
wbt.Show();
could I use this code to open an .exe file?
Your code does not programmatically open an app. Instead, it opens a web browser, navigates it to the xlsx file URI. Then, Internet Explorer recognizes file type from either extension or MIME type, and launches Excel.
With exe file, you’re only gonna get a message saying something like “Unsupported file format”.

iPhone zip files load?

Please give me idea, How I can load a zip file to the iPhone document folder through the standard means of. I need periodically to load the zip file produced by the some Windows application. Maybe with help of iTunes?
It should work as read the zip file and update some view on my iPhone app. There is no WiFi connection or internet connection, only connection with computer.
To enable File Sharing in your app, you simply set the boolean flag “UIFileSharingEnabled” in your info.plist.
Read Ray's this post for more info - http://www.raywenderlich.com/1948/how-integrate-itunes-file-sharing-with-your-ios-app