Visit the Ironworks Gaming Website Email the Webmaster Graphics Library Rules and Regulations Help Support Ironworks Forum with a Donation to Keep us Online - We rely totally on Donations from members Donation goal Meter

Ironworks Gaming Radio

Ironworks Gaming Forum

Go Back   Ironworks Gaming Forum > Ironworks Gaming Forums > General Discussion > General Conversation Archives (11/2000 - 01/2005)
FAQ Calendar Arcade Today's Posts Search

 
 
Thread Tools Search this Thread
Old 10-14-2003, 02:57 AM   #1
LennonCook
Jack Burton
 

Join Date: November 10, 2001
Location: Bathurst & Orange, in constant flux
Age: 37
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 ]
LennonCook is offline  
Old 10-14-2003, 04:19 AM   #2
Jorath Calar
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]
Jorath Calar is offline  
Old 10-14-2003, 10:56 AM   #3
pritchke
Bastet - Egyptian Cat Goddess
 

Join Date: September 5, 2001
Location: Calgary, AB
Age: 49
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 ]
pritchke is offline  
Old 10-20-2003, 07:05 AM   #4
LennonCook
Jack Burton
 

Join Date: November 10, 2001
Location: Bathurst & Orange, in constant flux
Age: 37
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?
LennonCook is offline  
Old 10-20-2003, 07:35 AM   #5
Melusine
Dracolisk
 

Join Date: January 8, 2001
Location: Amsterdam, The Netherlands
Age: 43
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
Melusine is offline  
Old 10-20-2003, 11:14 AM   #6
Night Stalker
Lord Ao
 

Join Date: June 24, 2002
Location: Nevernever Land
Age: 49
Posts: 2,002
Quote:
Originally posted by LennonCook:
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?
Depends on whether you are using a file object or not. If using an object the .delete method is available.

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 /><br />Shut UP! Pinky!
Night Stalker is offline  
Old 10-21-2003, 02:19 AM   #7
LennonCook
Jack Burton
 

Join Date: November 10, 2001
Location: Bathurst & Orange, in constant flux
Age: 37
Posts: 5,452
Quote:
Originally posted by Melusine:
Wasn't yesterday your birthday Lennon?
(said so on Pandemonium). If so, hope you had a good one!! [img]smile.gif[/img]
Indeed it was. [img]smile.gif[/img]

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...
LennonCook is offline  
Old 10-21-2003, 10:31 AM   #8
Night Stalker
Lord Ao
 

Join Date: June 24, 2002
Location: Nevernever Land
Age: 49
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 /><br />Shut UP! Pinky!
Night Stalker is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 01:34 AM.


Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
©2024 Ironworks Gaming & ©2024 The Great Escape Studios TM - All Rights Reserved