Computer Hope

Microsoft => Microsoft DOS => Topic started by: Droppen on August 08, 2004, 08:42:51 AM

Title: .bat send file
Post by: Droppen on August 08, 2004, 08:42:51 AM
How can i send a file with .bat to other comp moast easy ???
Title: Re: .bat send file
Post by: johnwill on August 08, 2004, 12:48:53 PM
copy test.txt \\standby\c\test.txt

This command just copied the TEST.TXT file from my local machine's current directory to my machine named STANDBY, the shared drive C, and named it test.txt there too.

Just like a local copy with network path as the destination.
Title: Re: .bat send file
Post by: Droppen on August 09, 2004, 02:42:37 AM
but cant you just send it like e-mail to ip? :-/
Title: Re: .bat send file
Post by: Droppen on August 09, 2004, 06:18:36 AM
how can i copy 2 txt's in to one? with  batch?
Title: Re: .bat send file
Post by: Droppen on August 09, 2004, 08:18:52 AM
and how can i use choice?? ???
Title: Re: .bat send file
Post by: johnwill on August 09, 2004, 09:12:11 AM
How about you state your problem fully and in complete sentences.  It's pretty hard to offer a solution without knowing what the real problem is.  ::)
Title: Re: .bat send file
Post by: 2k dummy on August 09, 2004, 09:15:44 AM
Quote
how can i copy 2 txt's in to one? with  batch?

copy file1+file2 <newfile>
Can be run from the command line or a batch file
Quote
and how can i use choice??

Choice (http://www.computerhope.com/batch.htm#1)
Title: Re: .bat send file
Post by: Droppen on August 09, 2004, 11:33:27 PM
i've got lots of problems, choise doesnt seem to work on xp, and "can not find file C:\text.txt+C:\text2.txt"
Title: Re: .bat send file
Post by: yeah right on August 11, 2004, 03:02:03 PM
How can i send a file with .bat to other comp moast easy?
- i would recommend ftp or if you're on a network, put it on a share drive(either one can be done throught batch files

how can i copy 2 txt's in to one? with  batch?
-easy, create a batch file and put this command in it
"type test.txt >> test2.txt"
every time the batch file is run,  the contents of test.txt are added to test2.txt