pshankland Posted July 27, 2010 Share Posted July 27, 2010 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. Link to comment Share on other sites More sharing options...
rvn Posted July 27, 2010 Share Posted July 27, 2010 try shellexec Link to comment Share on other sites More sharing options...
FuryCell Posted July 27, 2010 Share Posted July 27, 2010 Just to clarify what RVN said a bit. ShellExecute("\\server\") Also if that does not work try Run("Explorer.exe \\server\") HKTunes:Softpedia | GoogleCodeLyricToy:Softpedia | GoogleCodeRCTunes:Softpedia | GoogleCodeMichtaToolsProgrammer n. - An ingenious device that turns caffeine into code. Link to comment Share on other sites More sharing options...
pshankland Posted July 27, 2010 Author Share Posted July 27, 2010 Thanks both, ShellExecute worked brilliantly! Link to comment Share on other sites More sharing options...
pshankland Posted July 27, 2010 Author Share Posted July 27, 2010 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. Link to comment Share on other sites More sharing options...
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