Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / File Browser (DB Pro)

Author
Message
Physics coder
20
Years of Service
User Offline
Joined: 25th May 2004
Location: United States
Posted: 8th Sep 2004 12:49 Edited at: 8th Sep 2004 12:54
This is a file brower i made. It's different from the normal windows explore program.



I programmed this cuz i thought it was a kinda cool idea(though might never have a practical use) and i was bored.

Basically, when you save the code and run it, it will show a list of all the files and folders orbiting a "parent folder" button. if you click on one of the file "planets", it will execute it, so if you click a music file, and you have a default music program, it will play the music file in the music program, txt files will open in notepad or wordpad, etc. if it doesn't know what program to open a file with the computer might explode(j/k, i dunno know what would happen).

if you click on a folder "planet", it will go to that folder. simple. if you click the big parent folder button in the middle of the screen, it will go to the parent folder. you can also go to an "imaginary" folder so you can view all your drives.

the program is hard to use when there is a lot of files/folders, so it's just a fun idea, and probably won't ever have a practical use.

-----------------------------------
To delete the bug, delete the code.
Specs: Sony VAIO Laptop, Windows XP, P4 2.8Ghz, 512MB RAM, ATI Radeon 64MB video memory, DBP Upgrade 5.3.
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 8th Sep 2004 13:07
pretty cool.

umm, don't click the winnt folder, ewww messy.

"eureka" - Archimedes
Physics coder
20
Years of Service
User Offline
Joined: 25th May 2004
Location: United States
Posted: 8th Sep 2004 15:14 Edited at: 8th Sep 2004 15:30
thanks, yeah the folders with a lot of files/folders are next to
impossible to read.

I wasn't planning on updating the snippet, but did anyways.



This update has double clicking, click an unselected file/folder to select it. Click the selected folder a second time to run the file/enter the folder.

When a file is selected you can see:
The Size in kb, if less than 1 kb then in b
The File Type (txt,doc,exe,mp3,dba,zip,rar, etc...), i made a little function to do that.
The Date Modified
The Date Created

For folders you can only see the date modified and created, the size and file type wouldn't make sense for folders.

It also remembers where the directory you were in last time you ran the program. So if you go to a directory, and then close the program. the next time you run the program it will start in that directory. (it will create a data fild in the folder you save the program to. if you delete the data file, it will not remember the directory you were in and will start the program at the directory you run the program and recreate the data file.)

-----------------------------------
To delete the bug, delete the code.
Specs: Sony VAIO Laptop, Windows XP, P4 2.8Ghz, 512MB RAM, ATI Radeon 64MB video memory, DBP Upgrade 5.3.
Atreides
21
Years of Service
User Offline
Joined: 11th Oct 2003
Location: Switzerland (but NOT on a mountain !)
Posted: 10th Sep 2004 05:15
hey, that's a funny way to make a file browser :p
very good

The sleeper must awaken !

Login to post a reply

Server time is: 2024-11-23 20:08:06
Your offset time is: 2024-11-23 20:08:06