Jump to content
Sign in to follow this  
pshankland

Open a Share?

Recommended Posts

pshankland

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
pshankland

Thanks both, ShellExecute worked brilliantly!

Share this post


Link to post
Share on other sites
pshankland

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.