Topic "Cannot create ini file"

Author Message
TelltoK

Guest


When I execute winscp script, I am getting "Cannot create ini file - C:\program files\winscp\winscp.ini"

Please help me to resolve the problem.

Thanks
Advertisements
prikryl
[View user's profile]
Site Admin
Joined: 10 Dec 2002
Posts: 19078
Location: Prague, Czech republic
Can you send me an email, so I can send you back a debug version of WinSCP to track the problem? Please include link back to this topic in your email. Also note in this topic that you have sent the email. Thanks.

You will find my address (if you log in) in my forum profile.
_________________
Martin Prikryl
ashokmu
[View user's profile]

Joined: 10 Aug 2010
Posts: 5
Location: India
Same erro occuring for me too...

"cannot create file C:\program files\winscp\winscp.ini"

this error , occuring for me too..
prikryl
[View user's profile]
Site Admin
Joined: 10 Dec 2002
Posts: 19078
Location: Prague, Czech republic
Are you sure you have write permissions to the directory?
ashokmu
[View user's profile]

Joined: 10 Aug 2010
Posts: 5
Location: India
I ran the script through WINSCP.exe and the error "cannot create file C:\program files\winscp\winscp.ini" is displayed, then i given the permission to the directory. but Now the same error occuring in "Winscp.com" while executing the script, below mentioned the two scripts running in different winscp

Script executing in winscp.exe:
-------------------------------
open test
option transfer binary
mv /outgoing/BDF/*.zip /outgoing/BDF/TEMP/
get /Outgoing/BDF/TEMP/*.ZIP D:\apps\Incoming\FTP\
rm /Outgoing/BDF/TEMP/*.*
close
exit
--------------------------------


Script executing in winscp.com:
------------------------------
option batch abort
option confirm off
open test
option transfer bin
option batch on
put "D:\apps\incoming\FTP\ACK\WORK\*.*" /Incoming/Recon/
# Disconnect
close
exit
----------------------------
now the error occuring in winscp.com.
"cannot create file C:\program files\winscp\winscp.ini" error

can u please provide the solution for the above mentioned error.
prikryl
[View user's profile]
Site Admin
Joined: 10 Dec 2002
Posts: 19078
Location: Prague, Czech republic
Are you running both winscp.exe and winscp.com on the same machine and under the same account?
ashokmu
[View user's profile]

Joined: 10 Aug 2010
Posts: 5
Location: India
Yes..
I am using same machine to run both the script and same account as well.
As i created two seperate "BAT" file and executed through two seperate scheduled task in "Control panel".

And the log file details contains ,

recorded by system personnel.---WARNINGFurther authentication required
. 2010-08-16 01:15:21.399 Further authentication required
. 2010-08-16 01:15:21.399 Session password prompt (combined@sftp.divintech.com's password: )
. 2010-08-16 01:15:21.399 Using stored password.
. 2010-08-16 01:15:21.399 Sent password
. 2010-08-16 01:15:21.431 Access granted
. 2010-08-16 01:15:21.478 Opened channel for session
. 2010-08-16 01:15:21.509 Started a shell/command
. 2010-08-16 01:15:21.509 --------------------------------------------------------------------------
. 2010-08-16 01:15:21.509 Using SFTP protocol.
. 2010-08-16 01:15:21.524 Doing startup conversation with host.
> 2010-08-16 01:15:21.524 Type: SSH_FXP_INIT, Size: 5, Number: -1
< 2010-08-16 01:15:21.556 Type: SSH_FXP_VERSION, Size: 5, Number: -1
. 2010-08-16 01:15:21.556 SFTP version 3 negotiated.
. 2010-08-16 01:15:21.556 We believe the server has signed timestamps bug
. 2010-08-16 01:15:21.556 We will use UTF-8 strings for status messages only
. 2010-08-16 01:15:21.556 Getting current directory name.
. 2010-08-16 01:15:21.556 Getting real path for '.'
> 2010-08-16 01:15:21.556 Type: SSH_FXP_REALPATH, Size: 10, Number: 16
< 2010-08-16 01:15:21.603 Type: SSH_FXP_NAME, Size: 23, Number: 16
. 2010-08-16 01:15:21.603 Real path is '/'
. 2010-08-16 01:15:21.603 Startup conversation with host finished.
. 2010-08-16 01:15:21.634 Copying 0 files/directories to remote directory "/Incoming/Recon/"
. 2010-08-16 01:15:21.634 PrTime: Yes; PrRO: Yes; Rght: rw-r--r--; PrR: No (No); FnCs: N; RIC: 01; Resume: S (102400); CalcS: No; Mask:
. 2010-08-16 01:15:21.634 TM: B; ClAr: No; ExclM(No):
. 2010-08-16 01:15:21.634 AscM: *.*html; *.htm; *.txt; *.php; *.php3; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas; *.tex; *.pl; .htaccess; *.xtml; *.css; *.cfg; *.ini; *.sh; *.xml
. 2010-08-16 01:15:21.634 Closing connection.

Last edited by ashokmu on 16 Aug 2010 07:46; edited 1 time in total
prikryl
[View user's profile]
Site Admin
Joined: 10 Dec 2002
Posts: 19078
Location: Prague, Czech republic
I'm sorry, I do not know how to help you.
_________________
Martin Prikryl
ashokmu
[View user's profile]

Joined: 10 Aug 2010
Posts: 5
Location: India
hi,
can u please check the log file attached here...


recorded by system personnel.---WARNINGFurther authentication required
. 2010-08-16 01:15:21.399 Further authentication required
. 2010-08-16 01:15:21.399 Session password prompt (combined@sftp.divintech.com's password: )
. 2010-08-16 01:15:21.399 Using stored password.
. 2010-08-16 01:15:21.399 Sent password
. 2010-08-16 01:15:21.431 Access granted
. 2010-08-16 01:15:21.478 Opened channel for session
. 2010-08-16 01:15:21.509 Started a shell/command
. 2010-08-16 01:15:21.509 --------------------------------------------------------------------------
. 2010-08-16 01:15:21.509 Using SFTP protocol.
. 2010-08-16 01:15:21.524 Doing startup conversation with host.
> 2010-08-16 01:15:21.524 Type: SSH_FXP_INIT, Size: 5, Number: -1
< 2010-08-16 01:15:21.556 Type: SSH_FXP_VERSION, Size: 5, Number: -1
. 2010-08-16 01:15:21.556 SFTP version 3 negotiated.
. 2010-08-16 01:15:21.556 We believe the server has signed timestamps bug
. 2010-08-16 01:15:21.556 We will use UTF-8 strings for status messages only
. 2010-08-16 01:15:21.556 Getting current directory name.
. 2010-08-16 01:15:21.556 Getting real path for '.'
> 2010-08-16 01:15:21.556 Type: SSH_FXP_REALPATH, Size: 10, Number: 16
< 2010-08-16 01:15:21.603 Type: SSH_FXP_NAME, Size: 23, Number: 16
. 2010-08-16 01:15:21.603 Real path is '/'
. 2010-08-16 01:15:21.603 Startup conversation with host finished.
. 2010-08-16 01:15:21.634 Copying 0 files/directories to remote directory "/Incoming/Recon/"
. 2010-08-16 01:15:21.634 PrTime: Yes; PrRO: Yes; Rght: rw-r--r--; PrR: No (No); FnCs: N; RIC: 01; Resume: S (102400); CalcS: No; Mask:
. 2010-08-16 01:15:21.634 TM: B; ClAr: No; ExclM(No):
. 2010-08-16 01:15:21.634 AscM: *.*html; *.htm; *.txt; *.php; *.php3; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas; *.tex; *.pl; .htaccess; *.xtml; *.css; *.cfg; *.ini; *.sh; *.xml
. 2010-08-16 01:15:21.634 Closing connection.



Actually the Erro occurs in the line "put "D:\apps\incoming\FTP\ACK\WORK\*.*" /Incoming/Recon/"..
please help using these details
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