Sphaera_ORbis Posted May 28, 2005 Share Posted May 28, 2005 Run("@Programfilesdir\CCleaner\ccleaner.exe") Instead of; Run("C:\Program Files\CCleaner\ccleaner.exe") does not work, why? Link to comment Share on other sites More sharing options...
Helge Posted May 28, 2005 Share Posted May 28, 2005 When using a macro (or a variable) in a string, it's simply just a string.Example : MsgBox(64,"","@ProgramFilesDir\CCleaner\ccleaner.exe")But what you want to do is to put it outside the string.. Example :MsgBox(64,"",@ProgramFilesDir & "\CCleaner\ccleaner.exe")Try that. Link to comment Share on other sites More sharing options...
Sphaera_ORbis Posted May 28, 2005 Author Share Posted May 28, 2005 When using a macro (or a variable) in a string, it's simply just a string.Example : MsgBox(64,"","@ProgramFilesDir\CCleaner\ccleaner.exe")But what you want to do is to put it outside the string.. Example :MsgBox(64,"",@ProgramFilesDir & "\CCleaner\ccleaner.exe")Try that.<{POST_SNAPBACK}>Thanx for your reply! it worked!!! 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