Why does it take that long? Perhaps CF is not the best choice for this type of a process.Make sure you're using the right tool for the job.Just because you have a hammer and know how to use a hammer doesn't make the hammer the best for putting a screw in.It might be worth taking the time to learn
looking at 9k users.
Which, now that I do the math is 10 hours. Thanks for pointing that out :-)
-Original Message-
From: Burns, John D [mailto:[EMAIL PROTECTED]
Sent: Friday, October 08, 2004 1:04 PM
To: CF-Talk
Subject: RE: scheduling pages
Why does it take that long? Perhaps CF
This sounds like a better job for the File System Object (fso) and a Windows Scripting Host (wsh) script using VBScript.
From: Coleman, Brian [mailto:[EMAIL PROTECTED]
Sent: Friday, October 08, 2004 1:13 PM
To: CF-Talk
Subject: RE: scheduling pages
It's
: Coleman, Brian [mailto:[EMAIL PROTECTED]
Sent: Friday, October 08, 2004 2:13 PM
To: CF-Talk
Subject: RE: scheduling pages
It's going through user directories and deleting a certain folder + files + subfolders. I could do it with VBscript I think, but I haven't learned it :-( I'm not really sure on how
I would probably re-evaluate the process overall, but this may help.
One idea is to have the process run more efficiently but using code similar to this:
if(fileExists(locFilePath)){
createObject('java','java.io.File').init(locFilePath).delete();
}
Ryan Duckworth
Macromedia ColdFusion
[mailto:[EMAIL PROTECTED]
Sent: Friday, October 08, 2004 1:49 PM
To: CF-Talk
Subject: RE: scheduling pages
Could you use a batch script to do the deleting (if you think that's the time consuming portion) and then just have CF fire off and make the batch script run. Maybe that would help
You can use NT's AT to schedule jobs as well, Ive been using this method for
quite some time and works well for me. To execute CFML from a CMD or BAT
file use this little piece of code.
SET CF_TEMPLATE_PATH=E:\path_to_yourfile\your_template_name.cfm
d:\path_to_your_cfml_program\cfml.exe
There
7 matches
Mail list logo