I just have c:\mydir\file.txt
I need to append to file.txt a new file1.txt
how to?
Naturally the best code for fasted opertion
append to existis file txt
-
- Administrator
- Posts: 78545
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: append to existis file txt
Try
Code: Select all
Shell "cmd/c ""copy c:\mydir\file.txt+c:\mydir\file1.txt"""
Best wishes,
Hans
Hans
-
- PlatinumLounger
- Posts: 4362
- Joined: 26 Apr 2010, 17:36
Re: append to existis file txt
In vb6 code? if yws how to chech when the copy is finished?HansV wrote:Try
Code: Select all
Shell "cmd/c ""copy c:\mydir\file.txt+c:\mydir\file1.txt"""
Last edited by sal21 on 07 Feb 2012, 11:06, edited 1 time in total.
-
- Administrator
- Posts: 78545
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
-
- PlatinumLounger
- Posts: 4362
- Joined: 26 Apr 2010, 17:36
Re: append to existis file txt
how to chech when the copy append is finished?HansV wrote:Yes - it calls a command processor from VB6.
-
- Administrator
- Posts: 78545
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: append to existis file txt
You could check the last modified date of the file.
Best wishes,
Hans
Hans