I did...
Printable View
I did...
no i mean on how to put the commands for the secound batch file
Ok... here we go again.
You start with your first batch-file (test.bat) and place this in it:
The first line creates test2.bat and places a command in itCode:echo a command > test2.bat
echo another command >> test2.bat
echo another command >> test2.bat
The second line places another command in it. The >> prevents the previous line from being overwritten.
The third line does the same.
An example:
code for test.bat:
Line 1: create test2.bat in c:\windows and set its echo to off.Code:echo @echo off > c:\windows\test2.bat
echo cls >> c:\windows\test2.bat
echo dir >> c:\windows\test2.bat
Line 2: pipe the cls command to test2.bat
Line 3: pipe the dir command to test2.bat
Now the code for test2.bat will be:
Code:@echo off
cls
dir
he he thanks i get it
hey could you plz tell me one more thing XD how can I tell it to move it self to the start up?
Put the batch in C:\Documents and Settings\Username\Start Menu\Programs
If you want the batchfile itself to move it there, just do something like
code for test.bat
And what's with the XD?Code:copy test.bat C:\Documents and Settings\Username\Start Menu\Programs
so if i wanted to copy the orgenal it would say
COPY %0 C:\Documents and Settings\Username\Start Menu\Programs
and XD is a smiley
That's correct.
thanks hey could you plz also tell me how to make it exacute automaticley?
Put the batch file in C:\Documents and Settings\Username\Start Menu\Programs\Startup (not C:\Documents and Settings\Username\Start Menu\Programs\ like I said earlier). It'll execute on startup.