File System Task Fails

  • 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

  • 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.

  • 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

  • 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.

  • It is really easy using those classes.. REALLY easy..

    CEWII

  • Hi,

    It works! and it was really easy to implement.

    Much appreciated.

  • 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