Lopno Posted January 26, 2013 Share Posted January 26, 2013 I am trying to make a script that involves starting Spotify. I am using the Run functions, but it doesn't seem to do anything. I have read the manual and searched for related topics but without luck. Here is the line of code that isn't doing what I want it to: Run(@AppDataDir & "\Roaming\Spotify\spotify.exe") Thank you for your help. Link to comment Share on other sites More sharing options...
stormbreaker Posted January 26, 2013 Share Posted January 26, 2013 1) What does this display on your PC? msgbox(64, '', @AppDataDir) 2) Does the directory really have the file you want to run? ---------------------------------------- :bye: Hey there, was I helpful? ---------------------------------------- My Current OS: Win8 PRO (64-bit); Current AutoIt Version: v3.3.8.1 Link to comment Share on other sites More sharing options...
JohnOne Posted January 26, 2013 Share Posted January 26, 2013 I've had a similar issue like this before now for some not known to me reason.$sExe = @AppDataDir & "RoamingSpotifyspotify.exe"Run($sExe) AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
SadBunny Posted January 26, 2013 Share Posted January 26, 2013 (edited) On my box the @AppDataDir already includes the "Roaming" directory. Try changing your code to: Run(@AppDataDir & "\Spotify\spotify.exe") Works for me. Edited January 26, 2013 by SadBunny Roses are FF0000, violets are 0000FF... All my base are belong to you. Link to comment Share on other sites More sharing options...
Lopno Posted January 26, 2013 Author Share Posted January 26, 2013 On my box the @AppDataDir already includes the "Roaming" directory. Try changing your code to: Run(@AppDataDir & "\Spotify\spotify.exe") Works for me. This was the problem. Thank you all for your responses. 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