Click here to Skip to main content
15,905,323 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Truncate strings too long to fit box using 3 dots Pin
jzonthemtn1-Jun-08 12:23
jzonthemtn1-Jun-08 12:23 
QuestionDisplaying many details in a single text box control Pin
steve_rm31-May-08 21:55
steve_rm31-May-08 21:55 
GeneralRe: Displaying many details in a single text box control Pin
parth.p1-Jun-08 0:03
parth.p1-Jun-08 0:03 
QuestionRe: Displaying many details in a single text box control Pin
steve_rm1-Jun-08 3:15
steve_rm1-Jun-08 3:15 
AnswerRe: Displaying many details in a single text box control Pin
Scott Dorman1-Jun-08 3:46
professionalScott Dorman1-Jun-08 3:46 
QuestionRe: Displaying many details in a single text box control Pin
steve_rm1-Jun-08 4:55
steve_rm1-Jun-08 4:55 
AnswerRe: Displaying many details in a single text box control Pin
Scott Dorman1-Jun-08 7:12
professionalScott Dorman1-Jun-08 7:12 
QuestionFast file delete? Pin
lar3ry31-May-08 20:01
lar3ry31-May-08 20:01 
I have been working with a fair number of .VOB files (DVD format) that are up to 1 GB in size. When I use "delete" from Windows Explorer (or xplorer2) or "rm", it takes a very long time to delete the files. I have moved all the files I want to delete (and the directories they are in, into a single directory, and looking at it, I see there are over 40 GB of data to be deleted.

I thought I would write something that would run as a service or if not that, at least invisibly, to handle the job by watching for files to show up in a particular director, then deleting them at leisure.

However, in playing around with VB, I have discovered that I can programmatically delete files very quickly.

The way I do it is to open the file for write, then close it immediately. This makes it 0 length. I then close it, then delete it, and the job is done almost immediately.

My question is this... Is this method viable? Does Windows fix everything up later, taking care of deallocating the sectors, etc.? If so, what the heck is taking so long with the regular file delete from Explorer or a shell?

What pitfalls am I overlooking?

Thanks,
Larry
AnswerRe: Fast file delete? Pin
Dave Kreskowiak1-Jun-08 3:59
mveDave Kreskowiak1-Jun-08 3:59 
GeneralRe: Fast file delete? Pin
lar3ry1-Jun-08 16:00
lar3ry1-Jun-08 16:00 
GeneralRe: Fast file delete? Pin
lar3ry1-Jun-08 18:47
lar3ry1-Jun-08 18:47 
GeneralRe: Fast file delete? Pin
Dave Kreskowiak2-Jun-08 1:24
mveDave Kreskowiak2-Jun-08 1:24 
GeneralRe: Fast file delete? Pin
lar3ry2-Jun-08 19:39
lar3ry2-Jun-08 19:39 
Questionhow i can plot a graph in visual basic experssion edition 2008 Pin
ali135331-May-08 16:55
ali135331-May-08 16:55 
AnswerRe: how i can plot a graph in visual basic experssion edition 2008 Pin
parth.p31-May-08 23:58
parth.p31-May-08 23:58 
GeneralRe: how i can plot a graph in visual basic experssion edition 2008 Pin
ali13533-Jun-08 2:29
ali13533-Jun-08 2:29 
GeneralRe: how i can plot a graph in visual basic experssion edition 2008 Pin
parth.p3-Jun-08 4:14
parth.p3-Jun-08 4:14 
GeneralI need some code! Pin
neilJones31-May-08 12:27
neilJones31-May-08 12:27 
GeneralRe: I need some code! Pin
leckey31-May-08 16:53
leckey31-May-08 16:53 
GeneralRe: I need some code! Pin
Dave Kreskowiak1-Jun-08 4:11
mveDave Kreskowiak1-Jun-08 4:11 
GeneralRe: I need some code! Pin
Luc Pattyn1-Jun-08 5:39
sitebuilderLuc Pattyn1-Jun-08 5:39 
QuestionReceiver Image in a VB program Pin
Assaf8231-May-08 9:09
Assaf8231-May-08 9:09 
AnswerRe: Receiver Image in a VB program Pin
Dave Kreskowiak31-May-08 11:58
mveDave Kreskowiak31-May-08 11:58 
GeneralRe: Receiver Image in a VB program Pin
Assaf8231-May-08 12:01
Assaf8231-May-08 12:01 
GeneralRe: Receiver Image in a VB program Pin
Dave Kreskowiak31-May-08 12:15
mveDave Kreskowiak31-May-08 12:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.