Bamse

Run software,folder,text and more

6 posts in this topic

#1 ·  Posted (edited)

I am trying to open a folder with the run command but I can't get it to work, I have the same problem with text files.

#RequireAdmin
Run(@ScriptDir & '‪‪C:\Users\William\Desktop\BilderFinder')

I think the problem is that I am trying to run a .exe file or that it's looking for one. 

And can someone explain @ScriptDir

Edited by Bamse

Share this post


Link to post
Share on other sites



1 minute ago, GordonFreeman said:
ShellExecute("C:\Windows")

 

Thank you!

Share this post


Link to post
Share on other sites

@Bamse to answer your earlier question @scriptdir is a macro that will result in the path of your script (.e. c:\somepath\etc).  Therefore, when you do @scriptdir & c:\whatever you are basically creating two paths and combining the strings: "c:\etcc:\etc".  You can see this if you write it to the console or a message box.  See the help file for more information on macros.


Build your own poker game with AutoIt: pokerlogic.au3 | Learn To Program Using FREE Tools with AutoIt

Share this post


Link to post
Share on other sites
33 minutes ago, Jfish said:

@Bamse to answer your earlier question @scriptdir is a macro that will result in the path of your script (.e. c:\somepath\etc).  Therefore, when you do @scriptdir & c:\whatever you are basically creating two paths and combining the strings: "c:\etcc:\etc".  You can see this if you write it to the console or a message box.  See the help file for more information on macros.

Thank you!

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