Topic "-Permission Switch Through Process() in Windows Service"

Author Message
knockando
[View user's profile]

Joined: 2010-11-04
Posts: 14
I have an windows service that uses WinSCP to put/get files through Dim winscp As Process = New Process() method. Almost exactly like you posted at https://winscp.net/eng/docs/guide_dotnet#full_vb.net_example.

I recently had a request to be able to set permission on the files during the transfer so I'm implemented the -permissions=664. This worked fine as long as I was running my app local stepping through the code or typing in the commands on WinSCP.com. But when I install the service the permissions do not get set on the file. The service is running under a user account that is a member of the Administrator group on the server.

Example: put -permissions=664 D:\myFile.log /remoteDir/

I don't get any errors or messages when running this above command through the Dim winscp As Process = New Process() method, the file transfers fine, but the permissions do not get set.

Other than this everything is working great!
Any idea?
knockando
[View user's profile]

Joined: 2010-11-04
Posts: 14
I wish I could tell you how I fixed this but I can't, I rebuilt the project and re-installed the service and everything is working now. -permissions works as expected.
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License