ok il trying to loop trou all argument and if it one of them meets the requirement doe x with it so here my code
it does nothing but i start with: pit.exe f="c:\images"
does someone have anyid whats wrong?
Code:
Dim i
For i = 0 To Environment.GetCommandLineArgs.GetUpperBound(0) - 1
If Environment.GetCommandLineArgs(i).ToLower().StartsWith("f=") Then
Dim sLen As String = Environment.GetCommandLineArgs(i).Length - 2
sPath = Environment.GetCommandLineArgs(i).Substring(2, sLen)
End If
Next i
does someone have anyid whats wrong?