Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jul 20th, 2005, 10:11 PM   #1
B3TA_SCR1PT3R
Hobbyist Programmer
 
B3TA_SCR1PT3R's Avatar
 
Join Date: Jul 2005
Location: Dallas, Texas
Posts: 101
Rep Power: 0 B3TA_SCR1PT3R is an unknown quantity at this point
Send a message via AIM to B3TA_SCR1PT3R
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 %

.?
B3TA_SCR1PT3R is offline   Reply With Quote
Old Jul 21st, 2005, 8:09 AM   #2
skuinders
Hobbyist Programmer
 
skuinders's Avatar
 
Join Date: Jun 2005
Location: MA, US
Posts: 204
Rep Power: 4 skuinders is on a distinguished road
works for me...
bash-2.03$ echo 2% done
2% done
bash-2.03$
maybe try using quotes or \ before the % ?? It should work without those though.
__________________
"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
skuinders is offline   Reply With Quote
Old Jul 21st, 2005, 8:23 AM   #3
mackenga
Professional Programmer
 
Join Date: Mar 2005
Location: Glasgow, Scotland
Posts: 317
Rep Power: 4 mackenga is on a distinguished road
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...)
mackenga is offline   Reply With Quote
Old Jul 21st, 2005, 8:55 AM   #4
B3TA_SCR1PT3R
Hobbyist Programmer
 
B3TA_SCR1PT3R's Avatar
 
Join Date: Jul 2005
Location: Dallas, Texas
Posts: 101
Rep Power: 0 B3TA_SCR1PT3R is an unknown quantity at this point
Send a message via AIM to B3TA_SCR1PT3R
yep 2%% fixed it thanx
B3TA_SCR1PT3R is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 11:05 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC