Sign in to follow this  
Followers 0
pdaughe

Network Shares

5 posts in this topic

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

Share this post


Link to post
Share on other sites



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

The 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 :shocked:


Roses are FF0000, violets are 0000FF... All my base are belong to you.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0