by using OpenFileDialog, we can select the file name or file path.
Expand|Select|Wrap|Line Numbers
- OpenFileDialog1.ShowDialog()
- pgmPath.Text = OpenFileDialog1.FileName
Expand|Select|Wrap|Line Numbers
- FolderBrowserDialog1.ShowDialog()
- folderPath.Text = FolderBrowserDialog1.SelectedPath
for example: in desktop i have 4 folders, 1 EXE shortcut and 1 folder shortcut. but when i open FolderBrowserDialog it shows only 4 folders, not showing the 2 shortcuts.a way i can show files that end with ".lnk" and select that shortcut. is there a way i can select shortcut's...
and by using this shell command i tried to open the EXE's.
Expand|Select|Wrap|Line Numbers
- ProgramPath = "C:\Programs\Application1.exe"
- Shell(Chr(34) & ProgramPath & Chr(34), AppWinStyle.NormalFocus)
but when i tried to open a shortcut using the same shell comment
Expand|Select|Wrap|Line Numbers
- ProgramPath = "C:\Programs\App.lnk"
- Shell(Chr(34) & ProgramPath & Chr(34), AppWinStyle.NormalFocus)
is there a way i can open the shortcut.
if anyone have any idea how to select shortcut (files that end with ".lnk") and a way i can open the shortcut, please help me. if you can provide any help, then that will be great help for me...
Thanks in advance.