Cannot create ini file

Advertisement

TelltoK
Guest

Cannot create ini file

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

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
29,070
Location:
Prague, Czechia

Re: Cannot create ini file

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

Reply with quote

ashokmu
Joined:
Posts:
5
Location:
India

WIN SCP Error for ini files

Same erro occuring for me too...

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

this error , occuring for me too..

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
29,070
Location:
Prague, Czechia

Re: WIN SCP Error for ini files

Are you sure you have write permissions to the directory?

Reply with quote

ashokmu
Joined:
Posts:
5
Location:
India

WIN SCP Error for ini files

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.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
29,070
Location:
Prague, Czechia

Re: WIN SCP Error for ini files

Are you running both winscp.exe and winscp.com on the same machine and under the same account?

Reply with quote

ashokmu
Joined:
Posts:
5
Location:
India

Re: WINSCP Error

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 2010-08-16 07:46; edited 1 time in total

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
29,070
Location:
Prague, Czechia

Re: WINSCP Error

I'm sorry, I do not know how to help you.
_________________
Martin Prikryl

Reply with quote

ashokmu
Joined:
Posts:
5
Location:
India

Reg : Winscp error

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

Reply with quote

Advertisement

You can post new topics in this forum