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

Dim myCoolOpenFileDialog As New OpenFileDialog
        If myCoolOpenFileDialog.ShowDialog = DialogResult.OK Then
            '// Load File from Full Path.
            MsgBox(myCoolOpenFileDialog.FileName)
        End If
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.