onesegun
asked on
SSIS: Use Variable in C# Script task
Hi there,
How can I pass the following user defined variable to a C# script task. It's basically the folder path:
User defined variable is:
and the C# code I want to replace it with is the path as indicated below:
Thanks,
OS
How can I pass the following user defined variable to a C# script task. It's basically the folder path:
User defined variable is:
User::Source_Folder = \\14.100.26.12\dashboard
and the C# code I want to replace it with is the path as indicated below:
public void Main()
{
string[] files = System.IO.Directory.GetFiles(@"\\14.100.26.12\dashboard", "AGINGANALYSIS*.txt", System.IO.SearchOption.TopDirectoryOnly);
System.IO.FileInfo finf;
Thanks,
OS
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER