Page 1 of 1

Need help with auto marking

Posted: 27 Dec 2009 16:19
by lamera32
Hello my friends, i'm new in this sphere, i have a one question, how *bat file automaticly mark this http://i46.tinypic.com/314thjd.jpg , and copy this marking information in "file1.txt" file
I mind when i click, let's say FILE.bat, to write ipconfig, and mark information from ipconfig, and copy in file1.txt like this ---> "copy con file1.txt"....
Thank you advance, and i sorry for my bad english

Posted: 27 Dec 2009 17:16
by !k

Code: Select all

ipconfig| findstr :> file1.txt

Posted: 28 Dec 2009 05:05
by lamera32
Man i love you, i so thank you for helping, you have a one beer from me!

Posted: 28 Dec 2009 05:54
by lamera32
i have one more question this

Code: Select all

@echo off
echo this will send a file
net send (IP to recipient) file1.txt
copy file1.txt
echo file sent
pause

Where send this file, what i change to send on the C:\Documents & Settings\Administrator\Desktop\d

Posted: 28 Dec 2009 09:10
by !k
May be
copy file1.txt "C:\Documents & Settings\Administrator\Desktop\d"
:?
Folder "d" on Desktop must already exist

Posted: 29 Dec 2009 03:53
by lamera32
ok when i write the directory, and let say folder1 --> C:\Documents & Settings\Administrator\Desktop\folder1, this folder alone will be created?

Posted: 29 Dec 2009 08:35
by !k
No. COPY command can not create folders.
You must create the folder manually;
or the command MKDIR;
or use the XCOPY command

Code: Select all

echo D| xcopy file1.txt "C:\Documents & Settings\Administrator\Desktop\d" /Y

Code: Select all

echo D| xcopy folder1 "C:\Documents & Settings\Administrator\Desktop\folder1" /Y

Posted: 04 Jan 2010 17:26
by lamera32
can you write me how the code should look into a fortune, because do not get it all information..?