Are you defining SHARE permissions? (or has someone else defined them?)

In an AD/Domain environment, the share should be Authenticated Users / Full Control, and actual permissions assigned from the NTFS level. This assumes you have no Wintendo clients or workgroups, which might rely on share perms.

Combining NTFS and Share permissions is a black art, that, practiced indiscriminately will lead to the most bizzare results.

BTW - on 2K3 systems, only Admins have FC perms, and Everyone has Read perms on shares. You MUST change the share perms if you expect any non-admins to actually be able to write to shares.

Just something else to check...

Also, many of your comments seem to come AFTER the code they describe - just seems odd..

Finally, declaring vars is not $X=4, but "DIM $X". A suggestion for code that will be supported by others, or will become complex and difficult to remember what you did in 6 months is to declare vars 1 per line, and add a comment to describe what it is for. Temp vars can be clumped together, sorta like this:
Code:
Dim $IFile      ; Input file name
Dim $OFile      ; Output file name
Dim $I,$J,$K    ; index pointers for loops/arrays
Dim $           ; var to catch and ignore result codes


Glenn
_________________________
Actually I am a Rocket Scientist! \:D