VitaminD
asked on
Visual Basic Script Task Not Working Correctly
I am new to visual Basic and am having trouble getting this to work propery
All I am trying to do is check to sse if an excel file with the extension .xls exists at this path here \\customer100\c$\LicensePr od\BrokerF eed\ and if a .xls file exists then return success else return failure - I am doing this script task in Microsoft visual studio 2005
Public Sub Main()
Dim filecount As Integer
filecount = System.IO.Directory.GetFil es("\\\\cu stomer100\ c$\License Prod\Broke rFeed\\", "*.xls").Length;
Dts.TaskResult = Dts.Results.Success
End Sub
End Class
All I am trying to do is check to sse if an excel file with the extension .xls exists at this path here \\customer100\c$\LicensePr
Public Sub Main()
Dim filecount As Integer
filecount = System.IO.Directory.GetFil
Dts.TaskResult = Dts.Results.Success
End Sub
End Class
And what is happening when you run the code?
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
If you're using Visual Basic, the syntax would be:
Dts.Variables("User::Varia ble_Name") .Value
Sorry.
Dts.Variables("User::Varia
Sorry.