Sign in to follow this  
Followers 0
pshankland

Open a Share?

5 posts in this topic

I am sure this is simple but just can't figure out how to do it - even with a search of the forum.

I am trying to use AutoIt to open a share to a server. The reason for this is so I can attach an icon to the exe file once compiled and distribute out to users.

I have tried the following with no luck:

Run("\\server\")

Any ideas?

Thanks.

Share this post


Link to post
Share on other sites



try shellexec

Share this post


Link to post
Share on other sites

Thanks both, ShellExecute worked brilliantly!

Share this post


Link to post
Share on other sites

A bit of an edit - don't use ShellExecute as it was taking a couple of seconds to open and kept the EXE running!

Used the following and everything is working correctly:

Run("Explorer.exe \\server\")

Thanks.

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