Forum Replies Created

Viewing post 46 (of 46 total)

  • RE: using dos commands to check external file sizes

    You could use OA automation stored procedures with the Scripting.FileSystemObject

    EXEC @ProcRC = sp_OACreate

     'Scripting.FileSystemObject',

     @fso output

    -- create File Object

    EXEC @ProcRC = sp_OAMethod

     @fso,

     'GetFile',

     @fso_file output,

     @FULL_FILE_NAME

    -- Get File Size

    EXEC @ProcRC = sp_OAGetProperty

     @fso_file,

     'Size',

     @fso_file_size output

Viewing post 46 (of 46 total)