Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to show contents of a specified directory

Status
Not open for further replies.

TonCoronel

Programmer
Dec 1, 2003
37
NL
I have to make a window in wich I show the contects of a specified directory. Its a directory with lot of shortcuts to programs that are installed on a fileserver and people can run these programs from this fileserver.

I use the hyperlinktourl function to openup a webbrowser that shows the content but is it possible to show it in the application itself?
 
One way would to create a small .bat file which performs the 'dir' command on the directory and pipes the output to a specific file, say 'dirlist.txt'.

You could then use the Run function to execute the .bat file to create the current list.

You could then use the fileopen and fileread methods to parse through 'dirlist.txt' and then display the information accordingly.
 
The problem is that its a network drive, not shure how to make a bat file for a network drive. and they need to be able to see the icons from the shorcuts and be able to doubleclick them to start the different programs
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top