| 1. |
Solve : MS DOS LANGUAGE? |
|
Answer» Can anyone see whats wrong with this code? when you enter 1 number and enter to get that program up ALL of the programs come up! why? forgott its in swedish but i hope you can help me anyway ! The code appears to be falling thru all your logic after you go to a label. Try putting a goto :eof in every one of your labels: Agreed. Otherwise the code will just execute each line after the label until it reaches the end. Quote I don't recall a Program directory on any version of Windows. You've never seen Swedish Windows, then, in which "C:\Program" is the name of the folder called "C:\Program Files" in English language versions. You may be interested to know that there quite a few countries in the world where English is not the main language. Many of them have their own-language-version of Windows or other OSs available. Quote You've never seen Swedish Windows, then, in which "C:\Program" is the name of the folder called "C:\Program Files" in English language versions. Roll Eyes It's true I've never seen the Swedish version of Windows, and I'm well aware that English is not used everywhere. What is puzzling is why Microsoft would not simply translate "Program Files" (two words) into the local language rather than use "Program" (one word). Shouldn't it be "program ARKIVERA?" (two words)? Quote from: Sidewinder on June 10, 2008, 02:07:35 PM Quoteoops , quoted all nbut you see understans where i did write QuoteShouldn't it be "program arkivera?"(two words)? There are other ways to fix this, but this needs the least explanation. So much for that idea. Code: [Select]@echo off cls color A title Arams Understod echo Skriv vilken siffra du vill ha och sen ENTER echo skriv 1 for att oppna Kalkylatorn echo skriv 2 for att oppna Paint echo skriv 3 for att oppna Internet Explorer echo skriv 4 for att oppna Utorrent echo skriv 5 for att oppna Mozilla Firefox echo skriv 6 for att oppna Windows Update echo skriv 7 for att oppna Msn Messenger (dock inte 7.5 och gammlare) echo skriv 8 for att oppna Anteckningar echo skriv 9 for att oppna Diskrensning echo skriv 10 for att oppna Windows Media Player echo skriv 11 for att oppna Skarmtangentbord echo skriv 12 for att oppna Skarmforstoraren (dra den lite nerat sa den blir storre) echo skriv 13 for att oppna wordpad echo skriv 14 for att logga ut denna anvandare echo GJORD AV : ARAM set /p var=Skriv vilken siffra du vill: IF '%VAR%' == '1' GOTO calc IF '%VAR%' == '2' GOTO paint IF '%VAR%' == '3' GOTO internet IF '%VAR%' == '4' GOTO utorrent IF '%VAR%' == '5' GOTO firefox IF '%VAR%' == '6' GOTO update IF '%VAR%' == '7' GOTO messenger IF '%VAR%' == '8' GOTO notepad IF '%VAR%' == '9' GOTO diskrensning IF '%VAR%' == '10' GOTO mediaplayer IF '%VAR%' == '11' GOTO skärm IF '%VAR%' == '12' GOTO hjälp IF '%VAR%' == '13' GOTO wordpad IF '%VAR%' == '14' logoff echo GJORD AV : ARAM EXIT :calc %SystemRoot%\system32\calc.exe goto :eof :paint %SystemRoot%\system32\mspaint.exe goto :eof :internet "C:\Program\Internet Explorer\iexplore.exe" goto :eof :utorrent "C:\Program\uTorrent\uTorrent.exe" goto :eof :firefox "C:\Program\Mozilla Firefox\firefox.exe" goto :eof :update %SystemRoot%\system32\wupdmgr.exe goto :eof :messenger "C:\Program\Windows Live\Messenger\msnmsgr.exe" goto :eof :notepad %SystemRoot%\system32\notepad.exe goto :eof :diskrensning %SystemRoot%\system32\cleanmgr.exe goto :eof :mediaplayer "C:\Program\Windows Media Player\wmplayer.exe" /prefetch:1 goto :eof :skärm %SystemRoot%\system32\osk.exe goto :eof :hjälp %SystemRoot%\system32\magnify.exe goto :eof :wordpad "C:\Program\Windows NT\Tillbehör\wordpad.exe" goto :eof This should fix any problems. You don't actually NEED a goto in the :wordpad label, but it may prove useful for future expansion. THANK YOU SO MUCH MATE! IM SO FKIN HAPPY RIGHT KNOW!!! |
|