tj_cool said:Even with SkipScreen or whatever plugin, linkbucks simply doesn't work at all on my pcXFlak said:Get SkipScreen for firefox and voila, instant download! Hey, at least I'm offering a solution to those who share your thoughts!tj_cool said:Sigh, still into linkbucks?
I HATE that site
Also, noone shares my thoughts
ps: no you don't need to give me the link, I already have it
XFlak said:your second suggestion could probably be done if I knew a command to count the characters in the path (I would also have to figure out the max path length via trial and error)... if anyone knows such a command (or the max path length), plz let me know either on this thread or just PM me.
edit: max path length is probably 255 chars
@echo off
set folder=%cd%
set string=%folder%
set length=0
:loop
if defined string (
ÂÂÂÂset string=%string:~1%
ÂÂÂÂset /A length += 1
ÂÂÂÂgoto loop
ÂÂÂÂ)
if %length% LEQ 20 (
ÂÂÂÂecho Length of "%folder%" :ÂÂ%length% char... OK
ÂÂÂÂ) ELSE (
ÂÂÂÂecho Length of "%folder%" :ÂÂ%length% char... error
ÂÂÂÂ)
edit: looks like your edited code and your original code that I modified produce the same outputredia said:XFlak,
I finally had a few minutes to spare as my kid did not feel like going to bed right away.. lol
here you go with the script
*script removed*
I hope this helps.
Rthanks man! this should work perfectly, here's the core code I'll be using (still need to confirm the max # of characters the path can have before it fails, then disable the auto-update if its too long)... i made a small change to the code you originally posted (before you edited it) and its working like a charm (the change was: SET vartotest=%~dp0)
CODE@echo off
SET vartotest=%~dp0
set string=%vartotest%
set length=0
:loop
if defined string (
ÂÂÂÂset string=%string:~1%
ÂÂÂÂset /A length += 1
ÂÂÂÂgoto loop
ÂÂÂÂ)
if %length% LEQ 20 (
ÂÂÂÂecho Length of "%vartotest%" :ÂÂ%length% char... OK
ÂÂÂÂ) ELSE (
ÂÂÂÂecho Length of "%vartotest%" :ÂÂ%length% char... error
ÂÂÂÂ)
pause