Jump to content
Sign in to follow this  
Lopno

Using the Run Command to start a program

Recommended Posts

Lopno

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.

Share this post


Link to post
Share on other sites
stormbreaker

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

Share this post


Link to post
Share on other sites
SadBunny

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.

Share this post


Link to post
Share on other sites
Lopno

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.

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
Sign in to follow this  

×