I cant use IIS to enable 32 bit applications. I had it that way before cause
I was running CF in 32 bit mode.  Now that I am running 64 bit CF8 I had to
disable iis running as a 32 bit process because cf wouldn't work.  I think
because cf is running as a 64 bit process now, it wont be able to run a 32
bit process.

And no I did mean createObject("COM","Scripting.FileSystemObject");

I was using the COM object that you would normally use in classic ASP or VB.
Been using it for years and worked fine until I upgraded CF to the 64 bit
version.

Steve

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf
Of Andrew Scott
Sent: Monday, 12 May 2008 2:53 PM
To: [email protected]
Subject: [cfaussie] Re: get the size of a folder using java


Steve,

Yep the missing link was that you are using a com object, and that really
surprises me to be honest with you that it is a 32bit on a 64bit server. I
am assuming Scripting.FileSystemObject is part of the OS and not a 3rd part
product.

One thing you could do is leverage .Net instead, but the
Scripting.FileSystemObject is actually a .Net 3.0 thing I believe so it
might not work either.

Now there is also a setting in IIS, I am assuming you are using IIS? That
you can change the pool to enable 32bit applications to run. However in my
experience, running under Vista this screws Coldfusion up.


And I am assuming you meant:

createObject(".Net","Scripting.FileSystemObject");

And not

createObject("COM","Scripting.FileSystemObject");



Andrew Scott
Senior Coldfusion Developer
Aegeon Pty. Ltd.
www.aegeon.com.au
Phone: +613  9015 8628
Mobile: 0404 998 273




-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf
Of Steve Onnis
Sent: Monday, 12 May 2008 2:36 PM
To: [email protected]
Subject: [cfaussie] Re: get the size of a folder using java



I am running Windows 2003 64 Bit server and 64 Bit CF 8.01 Ent now and I was
getting an error saying 

"E:\ColdFusion8\jintegra\bin\ntvinv.dll: Can't load IA 32-bit .dll on a AMD
64-bit platform " 

and it was happening when I was calling createObject("COM",
"Scripting.FileSystemObject")


Making sense now?

So I am looking for a way I can simply get the size of a folder because now
I cant use the COM object


-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf
Of Andrew Scott
Sent: Monday, 12 May 2008 2:20 PM
To: [email protected]
Subject: [cfaussie] Re: get the size of a folder using java


Steve,

I am a little confused here, do you refer to the .Net
Scripting.FileSystemObject or the Java one?

And I am confused with your statement about not being able to run 32bit on
64bit, are you referring to java here? There is not 64bit JVM, it is all
32bit at the moment.

I am confused as to what you are really meaning.


Andrew Scott
Senior Coldfusion Developer
Aegeon Pty. Ltd.
www.aegeon.com.au
Phone: +613  9015 8628
Mobile: 0404 998 273



-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf
Of Steve Onnis
Sent: Monday, 12 May 2008 1:05 PM
To: [email protected]
Subject: [cfaussie] get the size of a folder using java



I was using the Scripting.FileSystemObject to get file sizes and folder
sizes for one of my applications but now I am running on a 64 bit system and
the Scripting.FileSystemObject is a 32 bit application so I cant use it now.


For files I am using the java.io.File class to get the file sizes but have
hit a wall when trying to get folder sizes.  I have looked at the
java.io.File class does not have a length() method that works on folders to
get the folder sizes.  It seems the only way to do it is to loop over the
listFiles() array and add the file sizes up and then manually recurse
through any directories that might be in there.  Seems like a bit of a pain
really.

Anyone got any better ideas?  I have had a look at the .NET classes also and
it seems the same thing is there, no more Size property of the Directory.

Steve















--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"cfaussie" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to