Topic "Loading "Set Permissions" from winscp3.ini"

Author Message
bolle732

Guest


I'm making a package for WinSCP 3.61. I use a batch file to start WinSCP with the appropriate ini file. I got more or less all configuration to load from the ini file.
Only the "Transport" -> "Upload Options" -> "SetPermissions" configuration aren't loaded from the ini file. If I configure them once by hand in the GUI, they stay saved on that machine. But on every new computer, I need to configure them again by hand, because they don't load from the ini.

I think the name in the winscp3.ini for this is "Text=" and I use "Text=rwx---rwx".

The reason is for a work around that I can't specify the group when a file is copied to the server and multiple persons need to work on it. Therefor, I give all rights to the world, which will be changed by a regulary run cron job.

I use WinSCP 3.61 on WIndows XP SP1 with a SSH2 connection to my Mandrake 9.x Linux box.

Any ideas how to fix that ?

Andreas
Advertisements
bolle732

Guest


May the problem reside with my batch file ?

The content is:
start /B winscp361.exe /INI=winscp3.ini user@server

Andreas
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
I have tried it and it works fine for me. Maybe you can find some special circumstances under which it happens.
_________________
Martin Prikryl
bolle732

Guest


I hope you understand me right. I make the settings on one machine and store them in the winscp3.ini. Then I copy the winscp361.exe with the ini and batch files to another computer. The check box "Upload Options" is unset instead set and the "Set Permissions" isn't used by WinSCP.

Which is the corespondending entry in the winscp3.ini for "Upload Options" ?

Is the "Text=xxxxxx" used for the settings of "Set Permissions" ?

Or I'm using a wrong batch file for starting the WinSCP and all the settings aren't applied ?

I'm really stuck with this.

Andreas
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
bolle732 wrote:
I hope you understand me right. I make the settings on one machine and store them in the winscp3.ini. Then I copy the winscp361.exe with the ini and batch files to another computer. The check box "Upload Options" is unset instead set and the "Set Permissions" isn't used by WinSCP.

Yes I understand it. I have tried it and the check was checked after transfering the INI to another computer.

Quote:
Which is the corespondending entry in the winscp3.ini for "Upload Options" ?

PreserveRights=0
(to check the option, 1 to uncheck it).

Quote:
Is the "Text=xxxxxx" used for the settings of "Set Permissions" ?

It sets the permissions applied, if PreserveRights is 0.

Quote:
Or I'm using a wrong batch file for starting the WinSCP and all the settings aren't applied ?

To verify if INI file is used at all, check if INI file configuration storage is selected on Preferences dialog. If registry is selected then WinSCP has not found INI file and uses the registry instead.

You may try to specify full path to INI file on command line. Or just store the INI file to the same directory where WinSCP is. Then you do not need to use /INI switch at all, WinSCP will find it itself.
_________________
Martin Prikryl
Guest




I got your "solution". The problem was, that I had choosed the desktop as a temporary loaction for the files. WINSCP doesn't read the settings when I changed the ini file with a text editor.
I have moved the files to a directory called "C:\WINSCP" and used the full path to specify the location of the ini file. Now, the changes in the ini file are recognized by WinSCP. Without the full path, it doesn't work.

Strange is, that when not using the full path, the changes made in WinSCP have been saved too. The config location is reported as the ini file, but no changes have been made in it. For me, it seems that WinSCP is storing his setting somewhere undefined if not the full path to the ini file is specified. But I couldn't find it. No other ini file on the disk and nothing in the registry Sad

It would be nice, if some day, WinSCP will use it current directory, independend where it and his ini file is stored (UNC).

Andreas
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
Quote:
It would be nice, if some day, WinSCP will use it current directory, independend where it and his ini file is stored (UNC).

I think that current solution, i.e. WinSCP looks for INI file in its directory, is better for most user. As people usually have shortcut icon on desktop.
_________________
Martin Prikryl
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