Share via

Running a remote .cmd / .bat from SSIS Process Task

Northface 161 Reputation points
2021-01-28T20:11:35.89+00:00

Hi there,

I am trying to run this from this task with these two properties:

Executable: \servername\c$\Program Files (x86)\Common Files\xxx\Batch\Monthly_Total.cmd
Working directory:\servername\c$\Program Files (x86)\Common Files\xxx\Batch\

But it is failing and I getting this message:

'path.....

CMD.EXE was started with the above path as the current directoy.
UNC paths are not supported. Defaulting to Windows directory

The user has fully permissions on the remote virtual machine, it is Local Admin

Any thoughts? I remember have used this task in the past successfully against a remote server

Thanks in advance,

SQL Server | Other
SQL Server | Other

Additional SQL Server features and topics not covered by specific categories

0 comments No comments

Answer accepted by question author

Yitzhak Khabinsky 27,196 Reputation points
2021-01-28T20:16:24.087+00:00

You need to create a network file share for the UNC to be functional.
Along the following:

\\server\share\theRestOfThePath

Was this answer helpful?

0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.