Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: FSO - create folder


Message #1 by "Anna Aronova" <annaa@v...> on Thu, 20 Dec 2001 01:12:04 +0200
This is a multi-part message in MIME format.



------=_NextPart_000_003A_01C188F3.584C9950

Content-Type: text/plain;

	charset="us-ascii"

Content-Transfer-Encoding: 7bit



Hi, Gurus!

 

I tried to create subfolder on my server through ASP page . I tried to

use FSO object. It checks that such subfolder does not exist (it returns

false) but gets stalled when I try to create it. Permissions on IIS to

the folder in which I need to create subfolder are set to write.

 

May be somebody have an idea? 

 

Code:

 

Dim fso

Set fso = CreateObject("Scripting.FileSystemObject")

if not fso.FolderExists(path) then

 fso.CreateFolder(path) 

end if

 

PS. Path is variable. I printed it. It is right.

 

Please, help!

 

Anna








Message #2 by "TomMallard" <mallard@s...> on Wed, 19 Dec 2001 18:16:37 -0800
Does the folder have write/change permissions for the IIS machine,

IUSR_machineName (or IUSR_TEMPLATE under win2k if your running the script on

your own machine)?



tom mallard

seattle

----- Original Message -----

From: "Anna Aronova" <annaa@v...>

To: "ASP Web HowTo" <asp_web_howto@p...>

Sent: Wednesday, December 19, 2001 3:12 PM

Subject: [asp_web_howto] FSO - create folder





> Hi, Gurus!

>

> I tried to create subfolder on my server through ASP page . I tried to

> use FSO object. It checks that such subfolder does not exist (it returns

> false) but gets stalled when I try to create it. Permissions on IIS to

> the folder in which I need to create subfolder are set to write.

>

> May be somebody have an idea?

>

> Code:

>

> Dim fso

> Set fso = CreateObject("Scripting.FileSystemObject")

> if not fso.FolderExists(path) then

>  fso.CreateFolder(path)

> end if

>

> PS. Path is variable. I printed it. It is right.

>

> Please, help!

>

> Anna

>

>




$subst('Email.Unsub').

>



Message #3 by "Anna Aronova" <annaa@v...> on Thu, 20 Dec 2001 05:05:44 +0200
The problem is that on this machine I have w2 BUT with fat32. So I can't

give any permissions on files/folders.



I set write permission through IIS and like a last chance added

IUSR_machineName to Users group.



It seems like permissions problem because I have a problem saving files

that was uploaded with ASPSmartUpload.



I'll try tomorrow on normal server setting permissions as you told.



Do you have any other suggestions?



Thanks a lot



Anna



-----Original Message-----

From: TomMallard [mailto:mallard@s...] 

Sent: Thursday, 20 December, 2001 04:17

To: ASP Web HowTo

Subject: [asp_web_howto] Re: FSO - create folder



Does the folder have write/change permissions for the IIS machine,

IUSR_machineName (or IUSR_TEMPLATE under win2k if your running the

script on

your own machine)?



tom mallard

seattle

----- Original Message -----

From: "Anna Aronova" <annaa@v...>

To: "ASP Web HowTo" <asp_web_howto@p...>

Sent: Wednesday, December 19, 2001 3:12 PM

Subject: [asp_web_howto] FSO - create folder





> Hi, Gurus!

>

> I tried to create subfolder on my server through ASP page . I tried to

> use FSO object. It checks that such subfolder does not exist (it

returns

> false) but gets stalled when I try to create it. Permissions on IIS to

> the folder in which I need to create subfolder are set to write.

>

> May be somebody have an idea?

>

> Code:

>

> Dim fso

> Set fso = CreateObject("Scripting.FileSystemObject")

> if not fso.FolderExists(path) then

>  fso.CreateFolder(path)

> end if

>

> PS. Path is variable. I printed it. It is right.

>

> Please, help!

>

> Anna

>

>




$subst('Email.Unsub').

>








$subst('Email.Unsub').





Message #4 by "TomMallard" <mallard@s...> on Wed, 19 Dec 2001 19:36:32 -0800
Does the Users group have full control, or custom with change permissions?

I'd add the machine separately from Users and give it full control.



tom

----- Original Message -----

From: "Anna Aronova" <annaa@v...>

To: "ASP Web HowTo" <asp_web_howto@p...>

Sent: Wednesday, December 19, 2001 7:05 PM

Subject: [asp_web_howto] Re: FSO - create folder





> The problem is that on this machine I have w2 BUT with fat32. So I can't

> give any permissions on files/folders.

>

> I set write permission through IIS and like a last chance added

> IUSR_machineName to Users group.

>

> It seems like permissions problem because I have a problem saving files

> that was uploaded with ASPSmartUpload.

>

> I'll try tomorrow on normal server setting permissions as you told.

>

> Do you have any other suggestions?

>

> Thanks a lot

>

> Anna

>

> -----Original Message-----

> From: TomMallard [mailto:mallard@s...]

> Sent: Thursday, 20 December, 2001 04:17

> To: ASP Web HowTo

> Subject: [asp_web_howto] Re: FSO - create folder

>

> Does the folder have write/change permissions for the IIS machine,

> IUSR_machineName (or IUSR_TEMPLATE under win2k if your running the

> script on

> your own machine)?

>

> tom mallard

> seattle

> ----- Original Message -----

> From: "Anna Aronova" <annaa@v...>

> To: "ASP Web HowTo" <asp_web_howto@p...>

> Sent: Wednesday, December 19, 2001 3:12 PM

> Subject: [asp_web_howto] FSO - create folder

>

>

> > Hi, Gurus!

> >

> > I tried to create subfolder on my server through ASP page . I tried to

> > use FSO object. It checks that such subfolder does not exist (it

> returns

> > false) but gets stalled when I try to create it. Permissions on IIS to

> > the folder in which I need to create subfolder are set to write.

> >

> > May be somebody have an idea?

> >

> > Code:

> >

> > Dim fso

> > Set fso = CreateObject("Scripting.FileSystemObject")

> > if not fso.FolderExists(path) then

> >  fso.CreateFolder(path)

> > end if

> >

> > PS. Path is variable. I printed it. It is right.

> >

> > Please, help!

> >

> > Anna

> >

> >




> $subst('Email.Unsub').

> >

>

>




> $subst('Email.Unsub').

>

>

>




$subst('Email.Unsub').

>



Message #5 by "Ken Schaefer" <ken@a...> on Thu, 20 Dec 2001 23:19:53 +1100
I though Anna said this was FAT32 not NTFS - there are no file/folder

permissions with FAT32.



Chers

Ken



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

From: "TomMallard" <mallard@s...>

Subject: [asp_web_howto] Re: FSO - create folder





: Does the Users group have full control, or custom with change permissions?

: I'd add the machine separately from Users and give it full control.

:

: tom

: ----- Original Message -----

: From: "Anna Aronova" <annaa@v...>

: To: "ASP Web HowTo" <asp_web_howto@p...>

: Sent: Wednesday, December 19, 2001 7:05 PM

: Subject: [asp_web_howto] Re: FSO - create folder

:

:

: > The problem is that on this machine I have w2 BUT with fat32. So I can't

: > give any permissions on files/folders.



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



Message #6 by "TomMallard" <mallard@s...> on Thu, 20 Dec 2001 07:03:32 -0800
Hmmm, why did I think FAT had web sharing....time for coffee!



tom

----- Original Message -----

From: "Ken Schaefer" <ken@a...>

To: "ASP Web HowTo" <asp_web_howto@p...>

Sent: Thursday, December 20, 2001 4:19 AM

Subject: [asp_web_howto] Re: FSO - create folder





> I though Anna said this was FAT32 not NTFS - there are no file/folder

> permissions with FAT32.

>

> Chers

> Ken

>

> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

> From: "TomMallard" <mallard@s...>

> Subject: [asp_web_howto] Re: FSO - create folder

>

>

> : Does the Users group have full control, or custom with change

permissions?

> : I'd add the machine separately from Users and give it full control.

> :

> : tom

> : ----- Original Message -----

> : From: "Anna Aronova" <annaa@v...>

> : To: "ASP Web HowTo" <asp_web_howto@p...>

> : Sent: Wednesday, December 19, 2001 7:05 PM

> : Subject: [asp_web_howto] Re: FSO - create folder

> :

> :

> : > The problem is that on this machine I have w2 BUT with fat32. So I

can't

> : > give any permissions on files/folders.

>

> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

>

>




$subst('Email.Unsub').

>



Message #7 by "Anna Aronova" <annaa@v...> on Fri, 21 Dec 2001 00:20:54 +0200
Tom, thanks.



I tried to run an application on w2 with NTFS and gave to

IIS_machine_name user write permissions to the folder and everything

worked fine. 



But still there is a question how to make it work on w2 with fat32???

I know that usually nobody uses such environment but..???



Any suggestions?



Anna





-----Original Message-----

From: TomMallard [mailto:mallard@s...] 

Sent: Thursday, 20 December, 2001 05:37

To: ASP Web HowTo

Subject: [asp_web_howto] Re: FSO - create folder



Does the Users group have full control, or custom with change

permissions?

I'd add the machine separately from Users and give it full control.



tom

----- Original Message -----

From: "Anna Aronova" <annaa@v...>

To: "ASP Web HowTo" <asp_web_howto@p...>

Sent: Wednesday, December 19, 2001 7:05 PM

Subject: [asp_web_howto] Re: FSO - create folder





> The problem is that on this machine I have w2 BUT with fat32. So I

can't

> give any permissions on files/folders.

>

> I set write permission through IIS and like a last chance added

> IUSR_machineName to Users group.

>

> It seems like permissions problem because I have a problem saving

files

> that was uploaded with ASPSmartUpload.

>

> I'll try tomorrow on normal server setting permissions as you told.

>

> Do you have any other suggestions?

>

> Thanks a lot

>

> Anna

>

> -----Original Message-----

> From: TomMallard [mailto:mallard@s...]

> Sent: Thursday, 20 December, 2001 04:17

> To: ASP Web HowTo

> Subject: [asp_web_howto] Re: FSO - create folder

>

> Does the folder have write/change permissions for the IIS machine,

> IUSR_machineName (or IUSR_TEMPLATE under win2k if your running the

> script on

> your own machine)?

>

> tom mallard

> seattle

> ----- Original Message -----

> From: "Anna Aronova" <annaa@v...>

> To: "ASP Web HowTo" <asp_web_howto@p...>

> Sent: Wednesday, December 19, 2001 3:12 PM

> Subject: [asp_web_howto] FSO - create folder

>

>

> > Hi, Gurus!

> >

> > I tried to create subfolder on my server through ASP page . I tried

to

> > use FSO object. It checks that such subfolder does not exist (it

> returns

> > false) but gets stalled when I try to create it. Permissions on IIS

to

> > the folder in which I need to create subfolder are set to write.

> >

> > May be somebody have an idea?

> >

> > Code:

> >

> > Dim fso

> > Set fso = CreateObject("Scripting.FileSystemObject")

> > if not fso.FolderExists(path) then

> >  fso.CreateFolder(path)

> > end if

> >

> > PS. Path is variable. I printed it. It is right.

> >

> > Please, help!

> >

> > Anna

> >

> >




> $subst('Email.Unsub').

> >

>

>




> $subst('Email.Unsub').

>

>

>




$subst('Email.Unsub').

>








$subst('Email.Unsub').





Message #8 by "Ken Schaefer" <ken@a...> on Fri, 21 Dec 2001 13:51:23 +1100
You can run a website on a FAT partition. IIS doesn't know what the

partition is, and doesn't really care. All it does is request the file from

the OS. If the partition is NTFS the OS will request that IIS supply user

credentials that are authorised to access the file. If the partition is

FAT/FAT32 then the OS will just read the file from disk and hand it to IIS.



Cheers

Ken



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

From: "TomMallard" <mallard@s...>

Subject: [asp_web_howto] Re: FSO - create folder





: Hmmm, why did I think FAT had web sharing....time for coffee!

:

: tom

: ----- Original Message -----

: From: "Ken Schaefer" <ken@a...>

: To: "ASP Web HowTo" <asp_web_howto@p...>

: Sent: Thursday, December 20, 2001 4:19 AM

: Subject: [asp_web_howto] Re: FSO - create folder

:

:

: > I though Anna said this was FAT32 not NTFS - there are no file/folder

: > permissions with FAT32.

: >

: > Chers

: > Ken

: >

: > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

: > From: "TomMallard" <mallard@s...>

: > Subject: [asp_web_howto] Re: FSO - create folder

: >

: >

: > : Does the Users group have full control, or custom with change

: permissions?

: > : I'd add the machine separately from Users and give it full control.

: > :

: > : tom






  Return to Index