Jump to content

Recommended Posts

Posted

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.

Posted

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

Posted (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 by SadBunny

Roses are FF0000, violets are 0000FF... All my base are belong to you.

Posted

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.

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...