Jump to content
Sign in to follow this  
Wb-FreeKill

Witch command to run file

Recommended Posts

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.

<{POST_SNAPBACK}>

mp3 isn't a program

you could try:

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

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...