List Info

Thread: Re:deleting locked files using vb




Re:deleting locked files using vb
country flaguser name
United States
2008-03-13 13:09:58

Maybe in the program you could have the code:
shell "e:path attrib myfile.ext -r"

assuming that e: is what windows assigned to the memory stick and
where path is the file's path and myfile is the name of the file with the read-only attribute. -r means remove the read-only attribute.

---Anthony

[Non-text portions of this message have been removed]

__._,_.___
.

__,_._,___
RE: Re:deleting locked files using vb
country flaguser name
United States
2008-03-15 07:36:17

> Maybe in the program you could have the code:
> shell "e:path attrib myfile.ext -r"

Attrib doesn't work in VB. To set attributes, use VBA.SetAttr

-Shawn

__._,_.___
.

__,_._,___
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )