(Script Needed) Check for files in folder name

Which hub software is the best? Where can I find script XXX? Discuss it here...(no, this is not for advertising your hub...)

Moderator: Moderators

Vinnie
Posts: 2
Joined: 2003-02-10 22:21

(Script Needed) Check for files in folder name

Post by Vinnie » 2003-02-10 22:28

I am looking for a special script that checks for a certain amount of specific files (MB/GB) in a specific folder.

Example: I want a script to verify on connection that you have 100MB of jpg files in a folder called images. All other folders mean nothing and all other files in the images folder mean nothing.

I am a realy newbie to scripts and running a hub. Sorry.

Sid
Posts: 56
Joined: 2003-01-07 23:13

Here this is a start

Post by Sid » 2003-02-11 03:19

Function FileExists(sFilePath)
Dim fsoAppPath, fsoFolder
Set fsoAppPath = CreateObject("Scripting.FileSystemObject")
FileExists = fsoAppPath.FileExists(sFilePath)
Set fsoAppPath = Nothing
End Function

you need to list files in a dir dont have something handy to do that right now.

Sardonis
Posts: 7
Joined: 2003-02-04 20:18

Post by Sardonis » 2003-02-14 02:55

Sid, that'll just check to see if a path on the person who is running the hub's hard drive exists. It won't find whether or not a user who is visiting has that directory....I don't know how you would do this, but I don't doubt that there is a modified client that could do this, I would imagine it'd be easier to make a client do this than have a hub script do it.

Who is online

Users browsing this forum: Google [Bot] and 0 guests