1.

Solve : Please help??

Answer»

Hello EVERYBODY,

I want to create a batch file and let it run each time windows xp starts.
The batch file must do the following
create 2 Directories (Mkdir command)
then create 2 subdirectories (md command)
In those 2 subdirectories i want the batch file to create 2 text FILES..
then i want those 2 text files to be merged into 1 text file and i want these other 2 text files to be removed so that i have 1
merged text file.
Then the text file has to be printed..

that is all..

I hope somebody can help me, cause i've been posting EVERYWHERE..

thanks in advance.
did your tutor GIVE you any advice (other than posting on lots of forums) ? Quote from: gucciluc on March 17, 2010, 12:14:00 PM

I want to create a batch file


C:\batch>type  gucci.bat
Code: [Select]echo off
md command1
md command2
cd command1
echo Hello Gucci > test1.txt
echo Hi Gucci > test2.txt
echo. > test3.txt
type test1.txt >> test3.txt
type test2.txt >> test3.txt
echo type test3.txt
type test3.txt
rem My batch print command does not work. Print from notepad
notepad  test3.txt
rem Do the above for command2
cd ..
Output:

C:\batch> gucci.bat
type test3.txt

Hello Gucci
Hi Gucci

C:\batch>thank u so much dude!

u helped me out alot!

i edited it a little and it worked!

here's what i have edited

echo off
mkdir map1
mkdir map2

cd map1
md subdir
cd subdir
echo Wat ben je > C:\Users\Kuv\Documents\msdos\map1\subdir\test1.txt

cd C:\Users\Kuv\Documents\msdos\map2
md subdir

echo IRRITANT LEX > C:\Users\Kuv\Documents\msdos\map2\subdir\test2.txt

echo. > C:\Users\Kuv\Documents\msdos\test3.txt

type C:\Users\Kuv\Documents\msdos\map1\subdir\test1.txt >> C:\Users\Kuv\Documents\msdos\test3.txt
type C:\Users\Kuv\Documents\msdos\map2\subdir\test2.txt >> C:\Users\Kuv\Documents\msdos\test3.txt

del C:\Users\Kuv\Documents\msdos\map1\subdir\test1.txt
del C:\Users\Kuv\Documents\msdos\map2\subdir\test2.txt

PRINT C:\Users\Kuv\Documents\msdos\test3.txt /D:LPT2

tree C:\Users\Kuv\Documents\msdos


pause



Discussion

No Comment Found