|
Rockbox mail archiveSubject: Re: Command line utility??Re: Command line utility??
From: Carl-Pieter van den Hazel <carl_at_hazel.demon.nl>
Date: Mon, 30 Oct 2006 21:30:36 +0100 Hi Hamish, You can make a batchfile with the next lines: _at_echo off rem rem ERRLVL.BAT Tests the exit errorlevel of any program. rem if "%1"=="" goto _HELP set erl=error call %1 %2 %3 %4 %5 %6 %7 %8 %9 if errorlevel 0 set erl=0 if errorlevel 1 set erl=1 if errorlevel 2 set erl=2 if errorlevel 3 set erl=3 if errorlevel 4 set erl=4 if errorlevel 5 set erl=5 if errorlevel 6 set erl=6 if errorlevel 7 set erl=7 if errorlevel 8 set erl=8 if errorlevel 9 set erl=9 if errorlevel 10 set erl=10 if errorlevel 11 set erl=11 if errorlevel 12 set erl=12 if errorlevel 13 set erl=13 if errorlevel 14 set erl=14 if errorlevel 15 set erl=15 if errorlevel 16 set erl=16 if errorlevel 17 set erl=17 if errorlevel 18 set erl=18 if errorlevel 19 set erl=19 if errorlevel 20 set erl=20 if errorlevel 21 set erl=21 if errorlevel 22 set erl=22 if errorlevel 23 set erl=23 if errorlevel 24 set erl=24 if errorlevel 25 set erl=25 if errorlevel 26 set erl=26 if errorlevel 27 set erl=27 if errorlevel 28 set erl=28 if errorlevel 29 set erl=29 if errorlevel 30 set erl=30 if errorlevel 31 set erl=31 if errorlevel 32 set erl=32 if errorlevel 33 set erl=33 if errorlevel 34 set erl=34 if errorlevel 35 set erl=35 if errorlevel 36 set erl=36 if errorlevel 37 set erl=37 if errorlevel 38 set erl=38 if errorlevel 39 set erl=39 if errorlevel 40 set erl=40 if errorlevel 41 set erl=41 if errorlevel 42 set erl=42 if errorlevel 43 set erl=43 if errorlevel 44 set erl=44 if errorlevel 45 set erl=45 if errorlevel 46 set erl=46 if errorlevel 47 set erl=47 if errorlevel 48 set erl=48 if errorlevel 49 set erl=49 if errorlevel 50 set erl=50 if errorlevel 51 set erl=51 if errorlevel 52 set erl=52 if errorlevel 53 set erl=53 if errorlevel 54 set erl=54 if errorlevel 55 set erl=55 if errorlevel 56 set erl=56 if errorlevel 57 set erl=57 if errorlevel 58 set erl=58 if errorlevel 59 set erl=59 if errorlevel 60 set erl=60 if errorlevel 61 set erl=61 if errorlevel 62 set erl=62 if errorlevel 63 set erl=63 if errorlevel 64 set erl=64 if errorlevel 65 set erl=65 if errorlevel 66 set erl=66 if errorlevel 67 set erl=67 if errorlevel 68 set erl=68 if errorlevel 69 set erl=69 if errorlevel 70 set erl=70 if errorlevel 71 set erl=71 if errorlevel 72 set erl=72 if errorlevel 73 set erl=73 if errorlevel 74 set erl=74 if errorlevel 75 set erl=75 if errorlevel 76 set erl=76 if errorlevel 77 set erl=77 if errorlevel 78 set erl=78 if errorlevel 79 set erl=79 if errorlevel 80 set erl=80 if errorlevel 81 set erl=81 if errorlevel 82 set erl=82 if errorlevel 83 set erl=83 if errorlevel 84 set erl=84 if errorlevel 85 set erl=85 if errorlevel 86 set erl=86 if errorlevel 87 set erl=87 if errorlevel 88 set erl=88 if errorlevel 89 set erl=89 if errorlevel 90 set erl=90 if errorlevel 91 set erl=91 if errorlevel 92 set erl=92 if errorlevel 93 set erl=93 if errorlevel 94 set erl=94 if errorlevel 95 set erl=95 if errorlevel 96 set erl=96 if errorlevel 97 set erl=97 if errorlevel 98 set erl=98 if errorlevel 99 set erl=99 if errorlevel 100 set erl=100 if errorlevel 101 set erl=101 if errorlevel 102 set erl=102 if errorlevel 103 set erl=103 if errorlevel 104 set erl=104 if errorlevel 105 set erl=105 if errorlevel 106 set erl=106 if errorlevel 107 set erl=107 if errorlevel 108 set erl=108 if errorlevel 109 set erl=109 if errorlevel 110 set erl=110 if errorlevel 111 set erl=111 if errorlevel 112 set erl=112 if errorlevel 113 set erl=113 if errorlevel 114 set erl=114 if errorlevel 115 set erl=115 if errorlevel 116 set erl=116 if errorlevel 117 set erl=117 if errorlevel 118 set erl=118 if errorlevel 119 set erl=119 if errorlevel 120 set erl=120 if errorlevel 121 set erl=121 if errorlevel 122 set erl=122 if errorlevel 123 set erl=123 if errorlevel 124 set erl=124 if errorlevel 125 set erl=125 if errorlevel 126 set erl=126 if errorlevel 127 set erl=127 if errorlevel 128 set erl=128 if errorlevel 129 set erl=129 if errorlevel 130 set erl=130 if errorlevel 131 set erl=131 if errorlevel 132 set erl=132 if errorlevel 133 set erl=133 if errorlevel 134 set erl=134 if errorlevel 135 set erl=135 if errorlevel 136 set erl=136 if errorlevel 137 set erl=137 if errorlevel 138 set erl=138 if errorlevel 139 set erl=139 if errorlevel 140 set erl=140 if errorlevel 141 set erl=141 if errorlevel 142 set erl=142 if errorlevel 143 set erl=143 if errorlevel 144 set erl=144 if errorlevel 145 set erl=145 if errorlevel 146 set erl=146 if errorlevel 147 set erl=147 if errorlevel 148 set erl=148 if errorlevel 149 set erl=149 if errorlevel 150 set erl=150 if errorlevel 151 set erl=151 if errorlevel 152 set erl=152 if errorlevel 153 set erl=153 if errorlevel 154 set erl=154 if errorlevel 155 set erl=155 if errorlevel 156 set erl=156 if errorlevel 157 set erl=157 if errorlevel 158 set erl=158 if errorlevel 159 set erl=159 if errorlevel 160 set erl=160 if errorlevel 161 set erl=161 if errorlevel 162 set erl=162 if errorlevel 163 set erl=163 if errorlevel 164 set erl=164 if errorlevel 165 set erl=165 if errorlevel 166 set erl=166 if errorlevel 167 set erl=167 if errorlevel 168 set erl=168 if errorlevel 169 set erl=169 if errorlevel 170 set erl=170 if errorlevel 171 set erl=171 if errorlevel 172 set erl=172 if errorlevel 173 set erl=173 if errorlevel 174 set erl=174 if errorlevel 175 set erl=175 if errorlevel 176 set erl=176 if errorlevel 177 set erl=177 if errorlevel 178 set erl=178 if errorlevel 179 set erl=179 if errorlevel 180 set erl=180 if errorlevel 181 set erl=181 if errorlevel 182 set erl=182 if errorlevel 183 set erl=183 if errorlevel 184 set erl=184 if errorlevel 185 set erl=185 if errorlevel 186 set erl=186 if errorlevel 187 set erl=187 if errorlevel 188 set erl=188 if errorlevel 189 set erl=189 if errorlevel 190 set erl=190 if errorlevel 191 set erl=191 if errorlevel 192 set erl=192 if errorlevel 193 set erl=193 if errorlevel 194 set erl=194 if errorlevel 195 set erl=195 if errorlevel 196 set erl=196 if errorlevel 197 set erl=197 if errorlevel 198 set erl=198 if errorlevel 199 set erl=199 if errorlevel 200 set erl=200 if errorlevel 201 set erl=201 if errorlevel 202 set erl=202 if errorlevel 203 set erl=203 if errorlevel 204 set erl=204 if errorlevel 205 set erl=205 if errorlevel 206 set erl=206 if errorlevel 207 set erl=207 if errorlevel 208 set erl=208 if errorlevel 209 set erl=209 if errorlevel 210 set erl=210 if errorlevel 211 set erl=211 if errorlevel 212 set erl=212 if errorlevel 213 set erl=213 if errorlevel 214 set erl=214 if errorlevel 215 set erl=215 if errorlevel 216 set erl=216 if errorlevel 217 set erl=217 if errorlevel 218 set erl=218 if errorlevel 219 set erl=219 if errorlevel 220 set erl=220 if errorlevel 221 set erl=221 if errorlevel 222 set erl=222 if errorlevel 223 set erl=223 if errorlevel 224 set erl=224 if errorlevel 225 set erl=225 if errorlevel 226 set erl=226 if errorlevel 227 set erl=227 if errorlevel 228 set erl=228 if errorlevel 229 set erl=229 if errorlevel 230 set erl=230 if errorlevel 231 set erl=231 if errorlevel 232 set erl=232 if errorlevel 233 set erl=233 if errorlevel 234 set erl=234 if errorlevel 235 set erl=235 if errorlevel 236 set erl=236 if errorlevel 237 set erl=237 if errorlevel 238 set erl=238 if errorlevel 239 set erl=239 if errorlevel 240 set erl=240 if errorlevel 241 set erl=241 if errorlevel 242 set erl=242 if errorlevel 243 set erl=243 if errorlevel 244 set erl=244 if errorlevel 245 set erl=245 if errorlevel 246 set erl=246 if errorlevel 247 set erl=247 if errorlevel 248 set erl=248 if errorlevel 249 set erl=249 if errorlevel 250 set erl=250 if errorlevel 251 set erl=251 if errorlevel 252 set erl=252 if errorlevel 253 set erl=253 if errorlevel 254 set erl=254 if errorlevel 255 set erl=255 cls echo . echo Errorlevel of %1 is %erl% echo . goto _OUT :_HELP cls echo echo echo ERRLVL.BAT Tests the exit errorlevel of any program. echo echo Syntax: ERRLVL program-name [param 1] ..... [paramn] echo :_OUT set erl= Save this batch with the name errlevel.bat and copy this batch to the rockbox directory at the hardist where the rockbox software is. When you now go to the commandpromt start - run - cmd and go to the rockbox directory, you can test the batch file. When you type the name of the batchfile en after it a commandline. The line wich is important to check the number to detect was I means: Ipodpather 0 Ipodpather 1 etc So when you at the prompt types: errlevel ipodpather 0 I think that you see a prompt of a errorlevel 0 When the right number of your ipod is detected 10, then I hope that when you types: errlevel Ipodpather 10 ethe errrorlevel is 1 When this is right, then it is possible to make a batch fiel within the right valute wil be detect and save in a variable do use it in the next commands of the batch. Greatings, Carl sorry for my baad english, but I hope you unerstand me :) ----- Original Message ----- From: Hamish Mackenzie To: Rockbox Sent: Monday, October 30, 2006 8:54 PM Subject: Re: Command line utility?? Hi Once you have done it once the number seems to remain constant so after the initial manual running of that bit of code to find the number it could be included in a batch file. I am getting three more Nanos to install Rockbox on today so I will do a bit of experimentation. cheers Hamish ----- Original Message ----- From: Carl-Pieter van den Hazel To: Rockbox Sent: Monday, October 30, 2006 7:18 PM Subject: Re: Command line utility?? Hi, About installation the rockbox software a read anything about a command: ipodpatcher to detect where the ipod is connect with the pc. This the command I'm nog sure if that is possible to do in a batchfil, but I Think this is possible too by using the command errorlevel. Greetz, Carl ----- Original Message ----- From: Hamish Mackenzie To: Rockbox Sent: Monday, October 30, 2006 8:30 AM Subject: Re: Command line utility?? Hi Thanks for that I might give it a go some time. Cheers Hamish ----- Original Message ----- From: Carl-Pieter van den Hazel To: Rockbox Sent: Sunday, October 29, 2006 6:53 PM Subject: Re: Command line utility?? Hi Hamish, When you want only execule commandlines, than it is simple. You can open a editor like notepad. There you type on each line a command. Then you save the file asl instipod.bat. Also it is an option to use the command pause, for example: commandline 1 pause command 2 pause command 3 etc. The result is that a commandline will be execute and the command pause stops the batch. When the user press a key, the next line wil be execute. When this way isn't the right way, can you discribe then the completely procedure to install rockbox onto the ipod? I do'n't have an ipod, so I cann't try a batchfile. Greetz, Carl ----- Original Message ----- From: Hamish Mackenzie To: Rockbox Sent: Saturday, October 28, 2006 11:23 PM Subject: Re: Command line utility?? Hi Carl-Pieter Whilst this would be a nice thing to have just one batch file would not be feasible. This is because there are too many variables for the differing models of ipods and for the number that the pc sees the Ipod on on any given computer. If you were referring to a batch file that would work only for me then I am happy to send you the commands that I use as I would be interested in looking at the batch file you create. Let me know and I can send the commands to you privately. Cheers Hamish ----- Original Message ----- From: Carl-Pieter van den Hazel To: Glenn at home ; Rockbox Sent: Sunday, October 29, 2006 5:47 AM Subject: Re: Command line utility?? Hi Hamish, Do you want to make a automatic procedure to install the rockbox software onto the ipod? I'm sure that Blind perons like that. I'm blind too. It is simple to do with a batchfile. If you can give me the commands to execute. Then I'll make a example batch-file. Carl-Pieter ----- Original Message ----- From: Hamish Mackenzie To: Rockbox Sent: Friday, October 27, 2006 4:21 AM Subject: Command line utility?? Hi All I have installed Rockbox on a few Nanos for friends of mine and will shortly be doing another batch of four or five. I was wondering if anyone knew of a command line utility that would allow me to paste text from the clipboard at the command prompt. this would greatly reduce the mucking around a blind person would have to do to make sure that each of the commands are being correctly entered at the command prompt. I will have a look around at the weekend but if anyone can save me the time I am sure all the blind Ipod users would be grateful if such a thing exists. cheers as always Hamish Hamish Received on 2006-10-30 Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy |