Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Old dog eyeing new tricks...
#3
Neat! +1

Code: (Select All)
target$ = _OpenFileDialog$("Pick a folder and a file.", "")
dir$ = Mid$(target$, 1, _InStrRev(target$, "\"))
file$ = Mid$(target$, Len(dir$) + 1)
Print dir$
Print file$
find$ = _OpenFileDialog$("Look, here's your file!", file$)
Shell _DontWait "explorer /select, " + dir$ + file$

So now I see I can get the file info and use it locate itself, similar to how we used to do it in the SHELL example, with one exception, it does not highlight the file in the menu, instead it places the file name in the dialog open box.

Thanks!

Pete

Oh, BTW: I stared programming in BASIC in 1981. TI 4A. When 4K was all anybody would ever need!
Shoot first and shoot people who ask questions, later.
Reply


Messages In This Thread
Old dog eyeing new tricks... - by Pete - 10-27-2024, 12:10 AM
RE: Old dog eyeing new tricks... - by ahenry3068 - 10-27-2024, 12:33 AM
RE: Old dog eyeing new tricks... - by Pete - 10-27-2024, 12:54 AM
RE: Old dog eyeing new tricks... - by ahenry3068 - 10-27-2024, 01:31 AM
RE: Old dog eyeing new tricks... - by ahenry3068 - 10-27-2024, 01:44 AM
RE: Old dog eyeing new tricks... - by Pete - 10-27-2024, 01:57 AM



Users browsing this thread: 1 Guest(s)