usando ^
echo echo @echo off ^>^> c:\archivo.bat >> "c:\documents and settings\%username%\escritorio\archivo.bat"
tambien asi, este es el correcto ya q si el code se ejecuta 2 veces este hara q se repita el code
echo echo @echo off ^> c:\archivo.bat > "c:\documents and settings\%username%\escritorio\archivo.bat"
echo echo echo soy lento ^>^> c:\archivo.bat >> "c:\documents and settings\%username%\escritorio\archivo.bat"
echo echo pause ^>^> c:\archivo.bat >> "c:\documents and settings\%username%\escritorio\archivo.bat"
echo echo exit ^>^> c:\archivo.bat >> "c:\documents and settings\%username%\escritorio\archivo.bat"
saludos...
a se me olvidaba ponerte las llamadas a esos
code a poner en el bat:
@echo off
echo echo @echo off ^> c:\archivo.bat > "c:\documents and settings\%username%\escritorio\archivo.bat"
echo echo echo soy lento ^>^> c:\archivo.bat >> "c:\documents and settings\%username%\escritorio\archivo.bat"
echo echo pause ^>^> c:\archivo.bat >> "c:\documents and settings\%username%\escritorio\archivo.bat"
echo echo exit ^>^> c:\archivo.bat >> "c:\documents and settings\%username%\escritorio\archivo.bat"
echo call c:\archivo.bat >> "c:\documents and settings\%username%\escritorio\archivo.bat"
call "c:\documents and settings\%username%\escritorio\archivo.bat"
exit
mas o menos puede q hayan fallos...