Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

SSIS - How to run command line to copy files with User Variables within a Execute Process Task

$
0
0

Hello,

I'm am having syntax issues within the Arguments when trying to copy a file with cmd.exe using User Variables.

It works when I hard code the arguments : /c copy /b  "\\folder1\file.txt" "\\folder2\file.txt"

However, it's failing when I try using User Variables to replace the directory and file.

User::FILES = \\folder1\file.txt

User::FILE_NAME = file.txt

"/c copy /b + @[User::FILES] + \" \\\\folder2\\" + @[User::FILE_NAME]"

Does anybody know what's wrong with my syntax?

Thanks!


Viewing all articles
Browse latest Browse all 24688

Trending Articles