dbTalk Databases Forums  

To copy files from a folder to another folder

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss To copy files from a folder to another folder in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
rkbnair
 
Posts: n/a

Default To copy files from a folder to another folder - 01-11-2008 , 03:04 PM






In order to copy all files in certain folder to another folder (with the same
file name) I have placed a File System Task inside the foreeach Loop
container.
However, I'm not sure on how to set the variables ie. the property of the
File System Task. Should I use variables and expressions?

Please advise.

Thanks.


Reply With Quote
  #2  
Old   
NC3
 
Posts: n/a

Default Re: To copy files from a folder to another folder - 01-11-2008 , 04:27 PM






On Jan 11, 4:04*pm, rkbnair <rkbn... (AT) community (DOT) nospam> wrote:
Quote:
In order to copy all files in certain folder to another folder (with the same
file name) I have placed a File System Task inside the foreeach Loop
container.
However, I'm not sure on how to set the variables ie. the property of the
File System Task. Should I use variables and expressions?

Please advise.

Thanks.
If you haven't already created a variable for the archive/new location
you can do so from within the File System task

1. Set IsDestinationPathVariable to "True"
2. click the DestinationVariable drop down and select new variable
giving t a name like varArchiveLocation setting the value to the
archive/new location
3. Set Operation to "Move File"
4. If you have the source set as a variabe the be sure to set the
IsSourcePathVariable to "True" otherwise leave as "False"
5. Click the drop down in the SourceConnection and select your
connection object you created in the connection manager

I think I have all the steps you need but each one is c learly
identified in the File System Task.

HTH

NC3


Reply With Quote
  #3  
Old   
NC3
 
Posts: n/a

Default Re: To copy files from a folder to another folder - 01-11-2008 , 04:27 PM



On Jan 11, 4:04*pm, rkbnair <rkbn... (AT) community (DOT) nospam> wrote:
Quote:
In order to copy all files in certain folder to another folder (with the same
file name) I have placed a File System Task inside the foreeach Loop
container.
However, I'm not sure on how to set the variables ie. the property of the
File System Task. Should I use variables and expressions?

Please advise.

Thanks.
If you haven't already created a variable for the archive/new location
you can do so from within the File System task

1. Set IsDestinationPathVariable to "True"
2. click the DestinationVariable drop down and select new variable
giving t a name like varArchiveLocation setting the value to the
archive/new location
3. Set Operation to "Move File"
4. If you have the source set as a variabe the be sure to set the
IsSourcePathVariable to "True" otherwise leave as "False"
5. Click the drop down in the SourceConnection and select your
connection object you created in the connection manager

I think I have all the steps you need but each one is c learly
identified in the File System Task.

HTH

NC3


Reply With Quote
  #4  
Old   
NC3
 
Posts: n/a

Default Re: To copy files from a folder to another folder - 01-11-2008 , 04:27 PM



On Jan 11, 4:04*pm, rkbnair <rkbn... (AT) community (DOT) nospam> wrote:
Quote:
In order to copy all files in certain folder to another folder (with the same
file name) I have placed a File System Task inside the foreeach Loop
container.
However, I'm not sure on how to set the variables ie. the property of the
File System Task. Should I use variables and expressions?

Please advise.

Thanks.
If you haven't already created a variable for the archive/new location
you can do so from within the File System task

1. Set IsDestinationPathVariable to "True"
2. click the DestinationVariable drop down and select new variable
giving t a name like varArchiveLocation setting the value to the
archive/new location
3. Set Operation to "Move File"
4. If you have the source set as a variabe the be sure to set the
IsSourcePathVariable to "True" otherwise leave as "False"
5. Click the drop down in the SourceConnection and select your
connection object you created in the connection manager

I think I have all the steps you need but each one is c learly
identified in the File System Task.

HTH

NC3


Reply With Quote
  #5  
Old   
NC3
 
Posts: n/a

Default Re: To copy files from a folder to another folder - 01-11-2008 , 04:27 PM



On Jan 11, 4:04*pm, rkbnair <rkbn... (AT) community (DOT) nospam> wrote:
Quote:
In order to copy all files in certain folder to another folder (with the same
file name) I have placed a File System Task inside the foreeach Loop
container.
However, I'm not sure on how to set the variables ie. the property of the
File System Task. Should I use variables and expressions?

Please advise.

Thanks.
If you haven't already created a variable for the archive/new location
you can do so from within the File System task

1. Set IsDestinationPathVariable to "True"
2. click the DestinationVariable drop down and select new variable
giving t a name like varArchiveLocation setting the value to the
archive/new location
3. Set Operation to "Move File"
4. If you have the source set as a variabe the be sure to set the
IsSourcePathVariable to "True" otherwise leave as "False"
5. Click the drop down in the SourceConnection and select your
connection object you created in the connection manager

I think I have all the steps you need but each one is c learly
identified in the File System Task.

HTH

NC3


Reply With Quote
  #6  
Old   
NC3
 
Posts: n/a

Default Re: To copy files from a folder to another folder - 01-11-2008 , 04:27 PM



On Jan 11, 4:04*pm, rkbnair <rkbn... (AT) community (DOT) nospam> wrote:
Quote:
In order to copy all files in certain folder to another folder (with the same
file name) I have placed a File System Task inside the foreeach Loop
container.
However, I'm not sure on how to set the variables ie. the property of the
File System Task. Should I use variables and expressions?

Please advise.

Thanks.
If you haven't already created a variable for the archive/new location
you can do so from within the File System task

1. Set IsDestinationPathVariable to "True"
2. click the DestinationVariable drop down and select new variable
giving t a name like varArchiveLocation setting the value to the
archive/new location
3. Set Operation to "Move File"
4. If you have the source set as a variabe the be sure to set the
IsSourcePathVariable to "True" otherwise leave as "False"
5. Click the drop down in the SourceConnection and select your
connection object you created in the connection manager

I think I have all the steps you need but each one is c learly
identified in the File System Task.

HTH

NC3


Reply With Quote
  #7  
Old   
NC3
 
Posts: n/a

Default Re: To copy files from a folder to another folder - 01-11-2008 , 04:27 PM



On Jan 11, 4:04*pm, rkbnair <rkbn... (AT) community (DOT) nospam> wrote:
Quote:
In order to copy all files in certain folder to another folder (with the same
file name) I have placed a File System Task inside the foreeach Loop
container.
However, I'm not sure on how to set the variables ie. the property of the
File System Task. Should I use variables and expressions?

Please advise.

Thanks.
If you haven't already created a variable for the archive/new location
you can do so from within the File System task

1. Set IsDestinationPathVariable to "True"
2. click the DestinationVariable drop down and select new variable
giving t a name like varArchiveLocation setting the value to the
archive/new location
3. Set Operation to "Move File"
4. If you have the source set as a variabe the be sure to set the
IsSourcePathVariable to "True" otherwise leave as "False"
5. Click the drop down in the SourceConnection and select your
connection object you created in the connection manager

I think I have all the steps you need but each one is c learly
identified in the File System Task.

HTH

NC3


Reply With Quote
  #8  
Old   
NC3
 
Posts: n/a

Default Re: To copy files from a folder to another folder - 01-11-2008 , 04:27 PM



On Jan 11, 4:04*pm, rkbnair <rkbn... (AT) community (DOT) nospam> wrote:
Quote:
In order to copy all files in certain folder to another folder (with the same
file name) I have placed a File System Task inside the foreeach Loop
container.
However, I'm not sure on how to set the variables ie. the property of the
File System Task. Should I use variables and expressions?

Please advise.

Thanks.
If you haven't already created a variable for the archive/new location
you can do so from within the File System task

1. Set IsDestinationPathVariable to "True"
2. click the DestinationVariable drop down and select new variable
giving t a name like varArchiveLocation setting the value to the
archive/new location
3. Set Operation to "Move File"
4. If you have the source set as a variabe the be sure to set the
IsSourcePathVariable to "True" otherwise leave as "False"
5. Click the drop down in the SourceConnection and select your
connection object you created in the connection manager

I think I have all the steps you need but each one is c learly
identified in the File System Task.

HTH

NC3


Reply With Quote
  #9  
Old   
NC3
 
Posts: n/a

Default Re: To copy files from a folder to another folder - 01-11-2008 , 04:27 PM



On Jan 11, 4:04*pm, rkbnair <rkbn... (AT) community (DOT) nospam> wrote:
Quote:
In order to copy all files in certain folder to another folder (with the same
file name) I have placed a File System Task inside the foreeach Loop
container.
However, I'm not sure on how to set the variables ie. the property of the
File System Task. Should I use variables and expressions?

Please advise.

Thanks.
If you haven't already created a variable for the archive/new location
you can do so from within the File System task

1. Set IsDestinationPathVariable to "True"
2. click the DestinationVariable drop down and select new variable
giving t a name like varArchiveLocation setting the value to the
archive/new location
3. Set Operation to "Move File"
4. If you have the source set as a variabe the be sure to set the
IsSourcePathVariable to "True" otherwise leave as "False"
5. Click the drop down in the SourceConnection and select your
connection object you created in the connection manager

I think I have all the steps you need but each one is c learly
identified in the File System Task.

HTH

NC3


Reply With Quote
  #10  
Old   
rkbnair
 
Posts: n/a

Default Re: To copy files from a folder to another folder - 01-11-2008 , 04:38 PM



I did all that already. But it still does not copy. Sometimes it copies just
one file and stops.

"NC3" wrote:

Quote:
On Jan 11, 4:04 pm, rkbnair <rkbn... (AT) community (DOT) nospam> wrote:
In order to copy all files in certain folder to another folder (with the same
file name) I have placed a File System Task inside the foreeach Loop
container.
However, I'm not sure on how to set the variables ie. the property of the
File System Task. Should I use variables and expressions?

Please advise.

Thanks.

If you haven't already created a variable for the archive/new location
you can do so from within the File System task

1. Set IsDestinationPathVariable to "True"
2. click the DestinationVariable drop down and select new variable
giving t a name like varArchiveLocation setting the value to the
archive/new location
3. Set Operation to "Move File"
4. If you have the source set as a variabe the be sure to set the
IsSourcePathVariable to "True" otherwise leave as "False"
5. Click the drop down in the SourceConnection and select your
connection object you created in the connection manager

I think I have all the steps you need but each one is c learly
identified in the File System Task.

HTH

NC3


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.