question

kavery avatar image
kavery asked

Simple vb.net code works in VS 2009 But not VS 2010

I'm attempting to check if a folder contains files or not (empty) using Script Task. Code works in VS 2009, but get 'Exception has been thrown by target of invocation'. I've been trying everything and searching the net with no luck. Please help: Public Sub Main() If Directory.GetFiles(Dts.Variables("strSourceFolderFilePath").Value).Length = 0 Then Dts.Variables("User::boolInd").Value = True End If End Sub variable'strSourceFolderFilePath' is read only. 'boolInd' is read/write.
visual-studio-2010directory
10 |1200 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

0 Answers

· Write an Answer

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.