check the existence of any file in a folder

Discussion in 'microsoft.public.sqlserver.dts' started by qjlee, Aug 24, 2010.

  1. qjlee

    qjlee Guest

    I need to write a script task to check if there is any file exists in c:\test
    folder.
    If there is a file, then return a failure. If there is no file, then return
    a success. The file in that particular folder could be with any name.

    Thanks,
     
    qjlee, Aug 24, 2010
    #1
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.