![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Hobbyist Programmer
|
no %
i made an app tht deletes all trash from ur system
like temp internet cache crap files stuff like theat is ther any way u can get it 2 say "2% done" 3% 4% so on... echo 2% done leaves out the % .? |
|
|
|
|
|
#2 |
|
Hobbyist Programmer
Join Date: Jun 2005
Location: MA, US
Posts: 204
Rep Power: 4
![]() |
works for me...
bash-2.03$ echo 2% done 2% done bash-2.03$
__________________
"A stupid man's report of what a clever man says can never be accurate, because he unconciously translates what he hears into something he can understand." - B. Russell http://web.bryant.edu/~srk2 |
|
|
|
|
|
#3 |
|
Professional Programmer
Join Date: Mar 2005
Location: Glasgow, Scotland
Posts: 317
Rep Power: 4
![]() |
I'm guessing this is a batch file rather than a shell script. Batch files used % for variables; e.g. %PATH% refers to the path variable. It's been a long time since I wrote a serious batch file (i.e. one more than 2 or 3 lines long) but I have a feeling the trick is to double up the percent signs; it might be worth trying:
echo 2%% to get it to output 2%. (Oh, and failing that, you could always just use the word "percent" - not a very nice fix, but if all else fails...) |
|
|
|
|
|
#4 |
|
Hobbyist Programmer
|
yep 2%% fixed it thanx
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|