tonyflora63
MIS
Hi
I'm trying to pass the file name from the OpenFileDialog box to a batch file as a string. I'm able to bring up the dialog box and select the file but I'm not sure about declaring the file name and passing it as a string. Any help would be greatly appreciated.
Thanks in advance.
Here's what I have so far:
OpenFileDialog1.FileName = ""
If OpenFileDialog1.ShowDialog = Windows.Forms.DialogResult.OK Then
fileName = OpenFileDialog1.FileName
End If
I'm trying to pass the file name from the OpenFileDialog box to a batch file as a string. I'm able to bring up the dialog box and select the file but I'm not sure about declaring the file name and passing it as a string. Any help would be greatly appreciated.
Thanks in advance.
Here's what I have so far:
OpenFileDialog1.FileName = ""
If OpenFileDialog1.ShowDialog = Windows.Forms.DialogResult.OK Then
fileName = OpenFileDialog1.FileName
End If