1. Create folder and path

Let me restate the previous question.

I want to write to file "c://Program
Files//Folder1//Folder2//Folder3//mystuff.dat"

and Folder1,Folder2 and Folder3 do not exist.

How can I do this without manually creating the folders?

Don Cole 
Sf

new topic     » topic index » view message » categorize

2. Re: Create folder and path

On 16 Dec 2004, at 7:47, don cole wrote:

> 
> 
> posted by: don cole <doncole at pacbell.net>
> 
> Let me restate the previous question.
> 
> I want to write to file "c://Program
> Files//Folder1//Folder2//Folder3//mystuff.dat"
> 
> and Folder1,Folder2 and Folder3 do not exist.
> 
> How can I do this without manually creating the folders?

Easy, like in my other email,

create_directory("c://Program Files//Folder1//Folder2//Folder3//")

and anything not there will get made. Then just write() your file there. Pick 
the create_directory() you need for the OS you use.

Kat

new topic     » goto parent     » topic index » view message » categorize

3. Re: Create folder and path

Kat wrote:

> 
> create_directory("c://Program Files//Folder1//Folder2//Folder3//")

Where did create_directory() come from?
Don Cole
SF

new topic     » goto parent     » topic index » view message » categorize

4. Re: Create folder and path

On 18 Dec 2004, at 23:15, don cole wrote:

> 
> 
> posted by: don cole <doncole at pacbell.net>
> 
> Kat wrote:
> 
> > 
> > create_directory("c://Program Files//Folder1//Folder2//Folder3//")
> 
> Where did create_directory() come from?
> Don Cole
> SF

From:           	Kat <gertie at visionsix.com>
To:             	EUforum at topica.com
Subject:        	Re: Create Folder?
Send reply to:  	gertie at visionsix.com
Date sent:      	Sat, 18 Dec 2004 23:10:45 -0600

On 16 Dec 2004, at 7:50, Matt Lewis wrote:

> 
> 
> posted by: Matt Lewis <matthewwalkerlewis at yahoo.com>
> 
> don cole wrote:
> > 
> > I know how to automatically create a .txt file (I want to write to) ,if it
> > dosen't exist.
> > 
> > Can I do this with a folder? How?
> 
> system( "mkdir folder_name", 2 )

I had a neat little include file on TiggrBox.Info that made path/folders if they
didn't already exist, and it was tested on dos, nix, and windows. I don't know 
where it is anymore, but someone else might have it.

Kat

new topic     » goto parent     » topic index » view message » categorize

5. Re: Create folder and path

don cole wrote:
> 
> Kat wrote:
> 
> > 
> > create_directory("c://Program Files//Folder1//Folder2//Folder3//")
> 
> Where did create_directory() come from?
> Don Cole
> SF
> 

I found it in Kat's  strtokv2a, which i had save to my rapidarchive folder

if you cannot find it on rds site, let me know.

later
rudy

new topic     » goto parent     » topic index » view message » categorize

6. Re: Create folder and path

rudy toews wrote:
> 
> don cole wrote:
> > 
> > Kat wrote:
> > 
> > > 
> > > create_directory("c://Program Files//Folder1//Folder2//Folder3//")
> > 
> > Where did create_directory() come from?
> > Don Cole
> > SF
> > 
> 
> I found it in Kat's  strtokv2a, which i had save to my rapidarchive folder
> 
> if you cannot find it on rds site, let me know.
> 
> later
> rudy
> 

p.s. i only found it there now by searching for strtok.e , found in a comment in
incldep.zip (by Matt Arriola) but does not contain it.
i can send it.

new topic     » goto parent     » topic index » view message » categorize

7. Re: Create folder and path

rudy toews wrote:


> i can send it.
> 
send it to:
doncole at pacbell.net
Please and thank you.
Don cole
SF

new topic     » goto parent     » topic index » view message » categorize

8. Re: Create folder and path

On 19 Dec 2004, at 1:21, Kat wrote:

> 
> 
> On 18 Dec 2004, at 23:15, don cole wrote:
> 
> > 
> > posted by: don cole <doncole at pacbell.net>
> > 
> > Kat wrote:
> > 
> > > 
> > > create_directory("c://Program Files//Folder1//Folder2//Folder3//")
> > 
> > Where did create_directory() come from?
> > Don Cole
> > SF
> 
> From:           	Kat <gertie at visionsix.com>
> To:             	EUforum at topica.com
> Subject:        	Re: Create Folder?
> Send reply to:  	gertie at visionsix.com
> Date sent:      	Sat, 18 Dec 2004 23:10:45 -0600
> 
> On 16 Dec 2004, at 7:50, Matt Lewis wrote:
> 
> > 
> > posted by: Matt Lewis <matthewwalkerlewis at yahoo.com>
> > 
> > don cole wrote:
> > > 
> > > I know how to automatically create a .txt file (I want to write to) ,if it
> > > dosen't exist.
> > > 
> > > Can I do this with a folder? How?
> > 
> > system( "mkdir folder_name", 2 )
> 
> I had a neat little include file on TiggrBox.Info that made path/folders if
> they
> didn't already exist, and it was tested on dos, nix, and windows. I don't know
> where it is anymore, but someone else might have it.

Ok, it's back online at

http://tiggrbox.info/program/createdir.html

Working code and proven examples are on the page.

Kat

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu