Having trouble with one thing

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
paul.darsey
Posts: 20
Joined: 30 May 2011 18:44

Having trouble with one thing

#1 Post by paul.darsey » 05 Jun 2011 20:37

i cant seem to get it to run the skype code

Code: Select all

@echo Off
color F0
:chooseTask
echo Internet = i
echo Program = p
echo.
set /p task="Hey, %username% what do you want to do?"
if "%task%"=="i" goto chooseBrowser
if "%task%"=="p" goto chooseProgram
:chooseProgram
cls
echo FrostWire = f
echo Skype = s
echo CMD = c
echo Solitaire = cards
echo.
set /p program="Hey %username% what you wanna do?"
if "%program%"=="f" goto frostwire
if "%program%"=="s" goto skype
if "%program%"=="c" goto cmd
if "%program%"=="cards" goto solitaire
:frostwire
cls
start FrostWire.exe
goto exit
:skype
cls
start C:\Program Files (x86)\Skype\Phone\skype.exe
goto exit
:CMD
cls
start cmd.exe
goto exit
:solitaire
cls
start solitaire.exe
goto exit
:chooseBrowswer
echo Firefox = f
echo Internet Explorer = i
echo Google Chrome = g
echo.
set /p browser="Hey, %username% choose a browser."
if "%browser%"=="f" goto firefox
if "%browser%"=="i" goto internetexplorer
if "%browser%"=="g" goto googlechrome
:firefox
set browser=firefox.exe
goto choice
:internetexplorer
set browser=iexplore.exe
goto choice
:googlechrome
set browser=C:\Users\Paul\AppData\Local\Google\Chrome\Application\chrome.exe
goto choice
:choice
cls
echo Google = g
echo Facebook = f
echo Gmail = m
echo Statebank = s
echo.
set /p choice="Hello, %username%, what would you like to do?"
if "%choice%"=="g" goto google
if "%choice%"=="f" goto Facebook
if "%choice%"=="m" goto Gmail
if "%choice%"== "s" goto StateBank
if "%choice%"=="G" goto Google
if "%choice%"=="F" goto Facebook
if "%choice%"=="M" goto Gmail
if "%choice%"=="S" goto StateBank
goto errorchoice
:google
cls
start %browser% http://www.google.com
goto exit
:Facebook
cls
start %browser% http://www.facebook.com
goto exit
:Gmail
cls
start %browser% http://www.gmail.com
goto exit
:StateBank
cls
start %browser% http://statebt.com
goto exit
:errorchoice
cls
echo %choice% is not a valid option!
ping -n 5 127.0.0.1 >nul
goto choice
:exit
cls
exit

Ed Dyreen
Expert
Posts: 1569
Joined: 16 May 2011 08:21
Location: Flanders(Belgium)
Contact:

Re: Having trouble with one thing

#2 Post by Ed Dyreen » 05 Jun 2011 20:44

try this:
start "skype" "C:\Program Files (x86)\Skype\Phone\skype.exe"

but why ?
start filenamewithnospaces
start "title" "File"

paul.darsey
Posts: 20
Joined: 30 May 2011 18:44

Re: Having trouble with one thing

#3 Post by paul.darsey » 05 Jun 2011 20:46

That worked, thanks guy!

Post Reply