Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

take hostname, look if folder exsist, if not create and copy files

1 view
Skip to first unread message

happ...@comcast.net

unread,
May 29, 2006, 6:26:37 PM5/29/06
to
Greetings.
I use asp with vbscript.
what I need is is when a visitor comes to the site, I need it to check
the host name. if "www.hometowndigest.com" is the host, then check a
folder named "something" and if the folder does not exsist, create
folder "www" and then copy folder "temp" and its contents.

If the folder "www" is there, look in it, check to see if the files in
folder "temp" are in there, if not, copy the files that are not from
folder "temp" into folder "www".


If instead of www.hometowndigest.com, it is
"vbscript.hometowndigest.com", I need it to do the same rountine. What
ever the subdomain name.


This file will be be drawn as an include file.


NOTE:


1. I do not need it to look in folder "Temp/www" or folder
"temp/vbscript", etc, only folder "temp"
2. Please note further includes along the way in the file will run
script. So, if it could not interfer with those by some kind of
statement.
3. if the host is "hometowndigest.com", or "tn-ol.com", etc, anything,
do nothing.
4. If the script cannot or would be too consuming of time or resources,

maybe i can manually add a listing of the files to look for in the
script through


Thanks in advance.
Paw.

0 new messages