English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I need this to look like the "my computer" icon, but when clicked, opens a sound file. It can not display a command prompt window. I would like to have the player not be visible on the computer, but that is not to important.

2007-01-23 11:55:25 · 2 answers · asked by Fork.bat 1 in Computers & Internet Programming & Design

2 answers

google for the windows start command and windows scripting

2007-01-23 12:00:45 · answer #1 · answered by mdigitale 7 · 0 0

OK, let's suppose the sound file you're trying to play is called example.mp3, and you're using WinAmp as your audio player.

1) Create a shortcut to WinAmp on your Desktop. You would do this by finding the executable (C:\Program Files\WinAmp\winamp.exe) in Windows Explorer. Right-click on the file name and select Copy from the pop-up menu. Right-click on an empty space on your Desktop and select Paste Shortcut. You should now have a shortcut to WinAmp (or whatever audio player you're using) on your Desktop.

2) Right-click on the shortcut and select Properties from the pop-up menu. In the field that says Target, you'll see a string surrounded by quotation marks which has the name of your audio player. You want to add the name of the sound file that you want to play after that string. So if target looks like this:
"C:\Program Files\Winamp\winamp.exe"
change it to look like this:
"C:\Program Files\Winamp\winamp.exe" "c:\mp3\example.mp3"
(don't forget the blank space between the name of your player and the name of your file).

3) A little further down in the same dialog, you'll see a dropdown list labeled "Run." Pull down the list and select "Minimized" if you don't want the player to display on the Desktop.

4) To change the icon to one that looks like My Computer, click on the button in the same dialog that's labeled Change Icon. Then, paste the following string in the field that's labeled "Look for icons in this file:"
%SystemRoot%\system32\SHELL32.dll
(the last bit at the end reads SHELL32.DLL - Yahoo! Answers cut it off for some reason) You'll see the icon for My Computer on the bottom row, fourth from the left. Highlight it and click OK.

5) Click OK again to close the Properties dialog.

6) If you want to rename the shortcut, right-click on it and select Rename.

2007-01-23 12:21:54 · answer #2 · answered by rongee_59 6 · 0 0

fedest.com, questions and answers