-
September 17th, 2004, 10:55 PM
#11
-
September 17th, 2004, 10:57 PM
#12
Member
no i mean on how to put the commands for the secound batch file
-
September 17th, 2004, 11:10 PM
#13
Ok... here we go again.
You start with your first batch-file (test.bat) and place this in it:
Code:
echo a command > test2.bat
echo another command >> test2.bat
echo another command >> test2.bat
The first line creates test2.bat and places a command in it
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:
Code:
echo @echo off > c:\windows\test2.bat
echo cls >> c:\windows\test2.bat
echo dir >> c:\windows\test2.bat
Line 1: create test2.bat in c:\windows and set its echo to off.
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:
-
September 17th, 2004, 11:13 PM
#14
Member
-
September 17th, 2004, 11:30 PM
#15
Member
hey could you plz tell me one more thing XD how can I tell it to move it self to the start up?
-
September 17th, 2004, 11:38 PM
#16
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
Code:
copy test.bat C:\Documents and Settings\Username\Start Menu\Programs
And what's with the XD?
-
September 17th, 2004, 11:40 PM
#17
Member
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
-
September 17th, 2004, 11:44 PM
#18
-
September 17th, 2004, 11:50 PM
#19
Member
thanks hey could you plz also tell me how to make it exacute automaticley?
-
September 18th, 2004, 12:01 AM
#20
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|