Sign in to follow this  
Followers 0
Wb-FreeKill

Witch command to run file

11 posts in this topic

#1 ·  Posted (edited)

Witch command to run an exe file, ore an Mp3 file?

Edited by Wb-FreeKill

Share this post


Link to post
Share on other sites



The answer to your own question is a word in that question. A logical word to invoke the command, in fact, since you used it to describe what you want to do.

Share this post


Link to post
Share on other sites

Is today dont tell anyone the exact answer day? You guys have me cracking up.

JS


AutoIt Links

File-String Hash Plugin Updated! 04-02-2008 Plugins have been discontinued. I just found out.

ComputerGetInfo UDF's Updated! 11-23-2006

External Links

Vortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more)

Share this post


Link to post
Share on other sites

Ive tryed that, but its saids:

Run ("C:\Nightwish - The Kinslayer.mp3")

Error: Unable to execute the external program.

Share this post


Link to post
Share on other sites

Ive tryed that, but its saids:

Run ("C:\Nightwish - The Kinslayer.mp3")

Error: Unable to execute the external program.

<{POST_SNAPBACK}>

mp3 isn't a program

you could try:

run(@comspec & '  /c start "C:\Nightwish - The Kinslayer.mp3"')

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

that just opens a DOS window, and nothing happens :S

Share this post


Link to post
Share on other sites

mp3 isn't a program

you could try:

run(@comspec & '  /c start "C:\Nightwish - The Kinslayer.mp3"')

<{POST_SNAPBACK}>

remember start's different on different os's on the NT flavoures you need to have the extra item in quotes in there for title:
run(@comspec & '  /c start "Playing a song, a happy happy song" "C:\Nightwish - The Kinslayer.mp3"')

if you want to play the mp3, you could search the helpfile for something that rhymes with SoundPlay()


"I'm not even supposed to be here today!" -Dante (Hicks)

Share this post


Link to post
Share on other sites

Use the name of your MP3 player exe.

Run('C:\Program Files\Windows Media Player\wmplayer.exe "C:\Nightwish - The Kinslayer.mp3"',"")

I am sure that other media player are also capable of using a similar syntax


CheersNobby

Share this post


Link to post
Share on other sites

Click on the MP3 it will run .

Share this post


Link to post
Share on other sites

ill try, thx

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  
Followers 0