vb.net - Open multiple files using arguments -


I am using this code to load many files from the windows context menu, but the problem is that Once the application is open several times, for example: if I select 14 files, open them with the application, the application is opened 14 times and the form only loads one.

But once there is a way to send all the arguments? Because% 1 sends only one file, or for example a% 2 that sends all the file pat in an argument? If I'vent has been found.

This is my real code:

  public-class program public sharing sub-main () Dim FurBase as new Core.clsDatabase FurBase.Directory = My.Application.Info. DirectoryPath dim returnValue as String () returnValue = Environment.GetCommandLineArgs () if returnValue.Length & gt; 1 then FurBase.AddTemporalFilepath (return value (1) .ostostring) If not then the process. Get Process Binam (Process.GetContent Process.programname). Langs & gt; 1 Then ShowUploader () End if End Private Shared Sub ShowUploader () Dim uploader as the new frmUploader application. Enabled Web Style () Application.Run (Uploader) End Sub End Class  

Please tell me what code and if there is any way to improve it.

Regards ~

I was reading about that today; Looks like you'll need to deal with a DDE server.

There is an old question that can help you:


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -