pdaughe Posted April 3, 2007 Posted April 3, 2007 Hello, Can someone give some guidance on how to determine if the files in a shared folder on Computer A can be updated by Computer B? That is, is this share read-only? I searched the forum rather exhaustively and found one script using WMI that listed the AccessMask, but that field is always blank when I run the script. Paul
SadBunny Posted April 3, 2007 Posted April 3, 2007 Hello,Can someone give some guidance on how to determine if the files in a shared folder on Computer A can be updated by Computer B? That is, is this share read-only?I searched the forum rather exhaustively and found one script using WMI that listed the AccessMask, but that field is always blank when I run the script.PaulThe easiest and quickest way would be to attempt to write a dummy file to the share in question and catch the error. But I think I read some WMI stuff too, or at least some UDF for network connections (so you don't have to reinvent the wheel). Can't find it in 1 minute of searching but you can ofcourse try longer Roses are FF0000, violets are 0000FF... All my base are belong to you.
Shevilie Posted May 2, 2007 Posted May 2, 2007 I'm looking for a way to write to a shared folder, so if you find anything I would be happy.. Have looked in AU3Lib, though I cant get it to work. Start here if you are new Valuater's AutoIT 1-2-3Looking for an UDF - Look hereDo you need to do it twice - Autoit
PaulIA Posted May 2, 2007 Posted May 2, 2007 I'm looking for a way to write to a shared folder, so if you find anything I would be happy.. Have looked in AU3Lib, though I cant get it to work.If you need help, might want to post the code you're having trouble with in the Auto3Lib thread. The Auto3Lib _NetShare_ShareEnum will enumerate all shares on a server and give you the share permissions. Auto3Lib: A library of over 1200 functions for AutoIt
Shevilie Posted May 2, 2007 Posted May 2, 2007 Well kinda solved my problem with a work around.. I could not write to the share.. but i could copy files to it :S So now i write a temp and copy it to the share Start here if you are new Valuater's AutoIT 1-2-3Looking for an UDF - Look hereDo you need to do it twice - Autoit
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now