-1

hello everyone,
can someone please help me this may be a simple question but im trying to open a file with a script typed into notepad (like .vbs or .bat). but i dont want to use the full directory to of the file im opening because the file is on a usb, and the drive changes each time i put it in a different computer. is the a way to open a file with out having right the full directory path

2
Contributors
1
Reply
2
Views
6 Years
Discussion Span
Last Post by codeorder
0
Dim myCoolOpenFileDialog As New OpenFileDialog
        If myCoolOpenFileDialog.ShowDialog = DialogResult.OK Then
            '// Load File from Full Path.
            MsgBox(myCoolOpenFileDialog.FileName)
        End If
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.