June 11, 2010 at 3:06 am
Hi All,
I have a bunch of files which I need to move from a local folder to a box (not on domain) which requires credentials. I am trying to use file system task to move the files but there is no option to specify credentials for the destination.
Is there other way to move the files from a local drive to a server?
Enis
June 11, 2010 at 7:02 am
Maybe the File System Task is not the way to go. You might be better off writing a small BAT file. Use the NET USE command to map a drive letter to the other server and do your file copy that way.
June 11, 2010 at 11:56 am
I think I would seriously consider using the script task and use impersonation to handle this.. I generally try to prevent depending on other things in the file system to get the work done in a package..
http://www.eggheadcafe.com/software/aspnet/29389752/vbnet-impersonation--cr.aspx
CEWII
June 11, 2010 at 12:20 pm
Elliott W (6/11/2010)
I think I would seriously consider using the script task and use impersonation to handle this.. I generally try to prevent depending on other things in the file system to get the work done in a package..http://www.eggheadcafe.com/software/aspnet/29389752/vbnet-impersonation--cr.aspx
CEWII
I wasn't aware of .Net Impersonation...but I'm at a pretty basic level of .Net skills. Thanks for pointing this out. I may be able to use it some day. I Googled the subject and I see there are some cut & paste Impersonation classes that people have posted online that appear to be relatively easy to use.
June 11, 2010 at 1:16 pm
It is really easy using those classes.. REALLY easy..
CEWII
June 14, 2010 at 2:23 am
Hi,
It works! and it was really easy to implement.
Much appreciated.
June 14, 2010 at 11:49 am
You are very welcome.
CEWII
Viewing 7 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic. Login to reply