HI
I am connecting to SFTP server in my SSIS package using winscp.
The issue that i am facing is i need to check if folder already exists on the SFTP server.
If it does not exist ,create a folder on SFTP
Bit if the directory already exists, then just move the files.
Tried googling it, but could not find relevant answer.
I am creating script in VB and then executing that script through winscp.
If someone can help on urgent basis??
Script generated , looks like and is working fine as of now :
ECHO OFFNET USE B: /DELETE
REM Check if already mapped
DIR Z:
IF NOT ERRORLEVEL 1 GOTO Connected
SET ERRORLEVEL = 0
NET USE Z: SFTPSrrverNameTemp password /USER:testuserName
:Connected
Thanks,