User not logged in - login - register
Home Calendar Books School Tool Photo Gallery Message Boards Users Statistics Advertise Site Info
go to bottom | |
 Message Boards » » Visual Basic Help Page [1]  
bjangel2
Veteran
277 Posts
user info
edit post

Does anyone have any suggestions on making a small stand alone program that takes a given folder of files and runs through the files and prints to the screen each file name in the folder and also all of the attributes of each file such as the size, date created, date last modified, etc?

If you have any ideas, please let me know.

Thank you.

11/1/2006 8:01:37 AM

joe17669
All American
22728 Posts
user info
edit post

I don't know much about VB, but could you make your VB program execute a shell command, and then get the results from that?

doing a simple 'dir' from the command prompt gives you everything you would need

[Edited on November 1, 2006 at 9:14 AM. Reason : edit: oops, it doesn't give you the date created, sorry]

11/1/2006 9:13:59 AM

agentlion
All American
13936 Posts
user info
edit post

how about..... Windows Explorer

11/1/2006 9:27:00 AM

Perlith
All American
7620 Posts
user info
edit post

You need to be specific about which attributes you need. And which version of VB you want to use.

11/1/2006 9:36:37 AM

Noen
All American
31346 Posts
user info
edit post

Quote :
"how about..... Windows Explorer"

11/1/2006 9:56:33 AM

joe17669
All American
22728 Posts
user info
edit post

My method may not be the best, but I stick by it, because it's actually something I might be able to implement myself

11/1/2006 11:42:50 AM

bjangel2
Veteran
277 Posts
user info
edit post

So how do you recommend doing it. I don't have too much of a background with programming. Also, it might be better to do in JAVA since it's more universal on windows computers.

Thanks.

11/1/2006 11:45:00 AM

Noen
All American
31346 Posts
user info
edit post

THERE IS NO NEED TO WRITE A PROGRAM TO DO THIS.

Windows Explorer -> View -> Details

Right click on the column header area at the top, select the file info you want to be displayed, or click More... and choose from more than you could ever want to know about a damn file.

This makes my head want to explode

11/1/2006 1:40:36 PM

bjangel2
Veteran
277 Posts
user info
edit post

I want to do more with the program jackass. I just need this part to start out with. I know how to use windows.

11/1/2006 1:46:18 PM

Noen
All American
31346 Posts
user info
edit post

Then maybe it would help to have posted what you ACTUALLY want to do, so we could offer you ACTUAL help.

11/1/2006 1:48:18 PM

pmc
Veteran
372 Posts
user info
edit post

First, you tell us what version of VB you want to use. If you're using VB6 or earlier, then we tell you to take a look at, say, the Scripting.FileSystemObject. If you're using VB.NET, then we'll give you a completely different answer, which might involve looking in the System.IO namespace. Then if you have further questions, you come back here, elaborate, and somewhere amongst a bunch of not very helpful posts, someone may answer your question.

11/1/2006 4:32:22 PM

LimpyNuts
All American
16859 Posts
user info
edit post

Quote :
"So how do you recommend doing it. I don't have too much of a background with programming. Also, it might be better to do in JAVA since it's more universal on windows computers.

Thanks."

go kill yourself now plz.

btw, i know all the VB you'd ever need (6+ years of experience)

11/1/2006 10:58:58 PM

 Message Boards » Tech Talk » Visual Basic Help Page [1]  
go to top | |
Admin Options : move topic | lock topic

© 2024 by The Wolf Web - All Rights Reserved.
The material located at this site is not endorsed, sponsored or provided by or on behalf of North Carolina State University.
Powered by CrazyWeb v2.38 - our disclaimer.