- martin
Post a reply
Topic review
- hemant_kalal
File overwrite error
Hi,
I am using following script to upload all the files from local directory to remote system, the requirement is that if a perticular file already exist then it should not copy that file and move on with the next file but the problem is that if it finds the file on the remote server it exits the session and does not consider the next file, If say I delete all the files from the remote machine then the script works fine.Pls. let me know where I am doing it wrong.
I am using following script to upload all the files from local directory to remote system, the requirement is that if a perticular file already exist then it should not copy that file and move on with the next file but the problem is that if it finds the file on the remote server it exits the session and does not consider the next file, If say I delete all the files from the remote machine then the script works fine.Pls. let me know where I am doing it wrong.
- martin
Re: Put files with wildcard - Error
You have to use
The documentation was wrong about using of file masks. I have fixed that.
*.*
in your put
command.
The documentation was wrong about using of file masks. I have fixed that.
- Hugo Hugrich
Put files with wildcard - Error
Hi,
i use WinSCP 4.18 and i am a Beginner. We need to put some files to another company.
This files have a running number. The file-name ist
The files should be delete after i have puted the files to the another company.
I want to run the transfer in a batchmode. I have written a bat-file with content:
The file
but now i get an error in the log-file. Here are content of the log-file-error:
I try to translate the error at
What is wrong in my skript ?
Sorry about my English.
Christian
i use WinSCP 4.18 and i am a Beginner. We need to put some files to another company.
This files have a running number. The file-name ist
bq00001
bq00002
and so on.
The files should be delete after i have puted the files to the another company.
I want to run the transfer in a batchmode. I have written a bat-file with content:
set abfrage=D:\Programme\test
set winscp=D:\Programme\Winscp
cd /D %abfrage%
if exist %abfrage%\bq*.* %winscp%\winscp.exe /console /hostkey /log=D:\log.txt /script=abfragebzr.txt
cd \
The file
abfragebzr.txt
content:
but now i get an error in the log-file. Here are content of the log-file-error:
. 2009-01-14 11:54:03.746 Copying 1 files/directories to remote directory "/home/test/data"
. 2009-01-14 11:54:03.746 PrTime: Yes; PrRO: No; Rght: rw-r--r--; PrR: No (No); FnCs: N; RIC: 01; Resume: S (102400); CalcS: No; Mask:
. 2009-01-14 11:54:03.746 TM: M; ClAr: No; CPS: 0; ExclM(No):
. 2009-01-14 11:54:03.746 AscM: *.*html; *.htm; *.txt; *.php; *.php3; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas; *.tex; *.pl; .htaccess; *.xtml; *.css; *.cfg; *.ini; *.sh; *.xml
. 2009-01-14 11:54:03.746 File: "bq*"
* 2009-01-14 11:54:03.761 (EOSError) System Fehler. Code: 123.
* 2009-01-14 11:54:03.761 Die Syntax für den Dateinamen, Verzeichnisnamen oder die Datenträgerbezeichnung ist falsch
. 2009-01-14 11:54:03.761 Asking user:
. 2009-01-14 11:54:03.761 Datei oder Verzeichnis "bq*" existiert nicht. ("System Fehler. Code: 123.
. 2009-01-14 11:54:03.761 Die Syntax für den Dateinamen, Verzeichnisnamen oder die Datenträgerbezeichnung ist falsch")
* 2009-01-14 11:54:03.777 (EScpSkipFile) Datei oder Verzeichnis "bq*" existiert nicht.
* 2009-01-14 11:54:03.777 System Fehler. Code: 123.
* 2009-01-14 11:54:03.777 Die Syntax für den Dateinamen, Verzeichnisnamen oder die Datenträgerbezeichnung ist falsch
. 2009-01-14 11:54:03.777 Closing connection.
. 2009-01-14 11:54:03.777 Sending special code: 12
. 2009-01-14 11:54:03.777 Sent EOF message
I try to translate the error at
2009-01-14 11_54:03.761 file or directory "bq* does not exist) (System Error. Code 123)
What is wrong in my skript ?
Sorry about my English.
Christian