Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27184

VS 2010 Copy all starting from the second position (index 1) of ...GetCommandLineArgs()

$
0
0
I have this statement

Dim temp() As String = System.Environment.GetCommandLineArgs()

Which is sent via context menu while in explorer.

It is my observation that the first item is the path to the program's exe file, and all other
item(s) are the highlighted files "%1". I only wish to create an array of the highlighted files.

What is the best way to create the array by skipping over the first item (index 0) in GetCommandLineArgs?

Any help is appreciated.

Scot-65

Viewing all articles
Browse latest Browse all 27184

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>