![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
#1 |
Jack Burton
![]() Join Date: November 10, 2001
Location: Bathurst & Orange, in constant flux
Age: 38
Posts: 5,452
|
All to do with external files -
1) Is there a way to Open a file so that it can be both read from and written to? 2) Is there any way to Open and perform processes to multiple files at once? 3) Is there a way to open a file without the user having to point directly to it, if you know the path but not the filename? (For example, to open and process every file at a certain place, with a .EG extention) EDIT: 4) Is it possible to make a new directory or check if a directory exists? [ 10-14-2003, 03:17 AM: Message edited by: LennonCook ] |
![]() |
![]() |
#2 |
Harper
![]() Join Date: October 6, 2001
Location: Iceland
Posts: 4,706
|
I used to know how to do both 1 and 3... in VB 5... but not anymore sorry.
but here are some sites that might help... http://www.vb-helper.com/index_files...rectories.html http://www.vbcode.com/ Good luck! [img]smile.gif[/img] |
![]() |
![]() |
#3 |
Bastet - Egyptian Cat Goddess
![]() Join Date: September 5, 2001
Location: Calgary, AB
Age: 50
Posts: 3,491
|
1. Yes
2. I don't think threads are possible in VB. You can modify both files but process wise I think you have no choice but to modify one file, then the other. from a user prespective it would still appear to be modified at almost the same same time. You can have more than one file open at a time and do things to them. 3. This is possible 4. This is possible I don't have time to provide examples but I may come back later to fill in some blamks if I have time. [ 10-14-2003, 11:04 AM: Message edited by: pritchke ] |
![]() |
![]() |
#4 |
Jack Burton
![]() Join Date: November 10, 2001
Location: Bathurst & Orange, in constant flux
Age: 38
Posts: 5,452
|
OK, I think I've figured out some of this myself, but I need one small bit of code for it to work properly:
How would I delete a file - as in, remove it from the allocation tables not just override it with 0 data? |
![]() |
![]() |
#5 |
Dracolisk
![]() Join Date: January 8, 2001
Location: Amsterdam, The Netherlands
Age: 45
Posts: 6,541
|
Wasn't yesterday your birthday Lennon?
![]() (said so on Pandemonium). If so, hope you had a good one!! [img]smile.gif[/img]
__________________
[img]\"hosted/melusine.jpg\" alt=\" - \" /><br />Your voice is ambrosia |
![]() |
![]() |
#6 | |
Lord Ao
![]() ![]() ![]() ![]() ![]() ![]() Join Date: June 24, 2002
Location: Nevernever Land
Age: 50
Posts: 2,002
|
Quote:
Otherwise del filename should work.
__________________
[url]\"http://www.duryea.org/pinky/gurkin.wav\" target=\"_blank\">AYPWIP?</a> .... <img border=\"0\" alt=\"[1ponder]\" title=\"\" src=\"graemlins/1ponder.gif\" /> <br />\"I think so Brain, but isn\'t a cucumber that small called a gherkin?\"<br /> ![]() |
|
![]() |
![]() |
#7 | |
Jack Burton
![]() Join Date: November 10, 2001
Location: Bathurst & Orange, in constant flux
Age: 38
Posts: 5,452
|
Quote:
Nightstalker, how would I use a file object? The only coding I've been able to find online says it's for VB6, but seems to not work (possibly it's for VB.Net?) - that is, Dim FP As New Scripting.FileSystemObject , but my version of VB doesn't seem to like that datatype somehow... |
|
![]() |
![]() |
#8 |
Lord Ao
![]() ![]() ![]() ![]() ![]() ![]() Join Date: June 24, 2002
Location: Nevernever Land
Age: 50
Posts: 2,002
|
You need to link the library for it into your project. I don't remember which library at the moment. You get there I think by right clicking on the controls tool bar, select components and then one of the tabs on that dialog box. It's been awhile and don't have a copy of VB in front of me.
ANyway, I think it's the scripting library. Sorry I can't be more specific.
__________________
[url]\"http://www.duryea.org/pinky/gurkin.wav\" target=\"_blank\">AYPWIP?</a> .... <img border=\"0\" alt=\"[1ponder]\" title=\"\" src=\"graemlins/1ponder.gif\" /> <br />\"I think so Brain, but isn\'t a cucumber that small called a gherkin?\"<br /> ![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Visual Basic Decompiter | Intrepid | General Conversation Archives (11/2000 - 01/2005) | 6 | 09-04-2003 03:02 AM |
(Yet Another) Visual BASIC Question | LennonCook | General Conversation Archives (11/2000 - 01/2005) | 1 | 05-07-2003 07:59 AM |
Visual Basic Question | LennonCook | General Conversation Archives (11/2000 - 01/2005) | 5 | 02-23-2003 01:58 PM |
Anyone know Visual Basic 6 here? | Jorath Calar | General Conversation Archives (11/2000 - 01/2005) | 1 | 11-24-2001 12:57 PM |
Basic Questions | Nagash | Wizards & Warriors Forum | 4 | 01-07-2001 02:10 AM |