Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

MarkNowicki

Thanks

Thanks
martin

Re: I'm trying to delete the Local files after I "put"

Do expect DeletetoRecycleBin to delete local files after upload? It does not do that. You need to script it. E.g. "put -delete". Or explicitly using "rm" command.
MarkNowicki

I'm trying to delete the Local files after I "put"

I am trying to Delete the source files which are on my local machine (Windows 2003. I am connecting to a remote server (not sre of the OS) and doing a "put" and so once the transfer is complete I want the source directory (local computer) to be empty.


I pout the DeletetoRecycleBin=1 in the Session section however that had no effect. It still works the same.. Transfer is OK but source files still there????

I'm not sure why it weon't delete the local files so If I cnnot get WinSCP to do it I will have to delete them some other way..
martin

Re: Here is the ini file I am using

DeleteToRecycleBin in Configuration\Interface applied to local files and for GUI only.
You have to the DeleteToRecycleBin in session section to affect deleting remote files.
MarkNowicki

Here is the ini file I am using

[Configuration\CDCache]
craincorp@custom.adage.com=412F686F6D653D2F2F0D0A2F3D2F2...

[SshHostKeys]
rsa2@22:custom.adage.com=0x23,0xb963243a77402a09f67634b0...

[Configuration\Interface]
RandomSeedFile=%25APPDATA%25%5Cwinscp.rnd
PuttyRegistryStorageKey=Software%5CSimonTatham%5CPuTTY
ConfirmOverwriting=1
ConfirmResume=1
AutoReadDirectoryAfterOp=1
SessionReopenAuto=5000
SessionReopenBackground=2000
SessionReopenTimeout=0
TunnelLocalPortNumberLow=50000
TunnelLocalPortNumberHigh=50099
CacheDirectoryChangesMaxSize=100
ShowFtpWelcomeMessage=0
ContinueOnError=0
ConfirmCommandSession=1
SynchronizeParams=66
SynchronizeOptions=5
SynchronizeModeAuto=-1
SynchronizeMode=0
MaxWatchDirectories=500
QueueTransfersLimit=2
QueueAutoPopup=1
QueueRememberPassword=0
PuttySession=WinSCP%20temporary%20session
PuttyPath=%25PROGRAMFILES%25%5CPuTTY%5Cputty.exe
PuttyPassword=0
TelnetForFtpInPutty=1
IgnoreCancelBeforeFinish=DFBC9A785634023F
BeepOnFinish=0
BeepOnFinishAfter=176CC1166CC1363F
SynchronizeBrowsing=0
KeepUpToDateChangeDelay=500
ChecksumAlg=md5
SessionReopenAutoIdle=5000
Interface=0
ShowAdvancedLoginOptions=1
ConfirmExitOnCompletion=1
CopyOnDoubleClick=2
CopyOnDoubleClickConfirmation=0
DDAllowMove=0
DDAllowMoveInit=0
DDTransferConfirmation=1
DDTemporaryDirectory=
DDWarnLackOfTempSpace=1
DDWarnLackOfTempSpaceRatio=9A9999999999F13F
DeleteToRecycleBin=1
DimmHiddenFiles=1
RenameWholeName=0
SelectDirectories=0
SelectMask=%2A.xml
ShowHiddenFiles=1
ShowInaccesibleDirectories=1
ConfirmTransferring=1
ConfirmDeleting=1
ConfirmRecycling=1
ConfirmClosingSession=1
AutoStartSession=
UseLocationProfiles=0
UseSharedBookmarks=0
LocaleSafe=1033
DDExtEnabled=1
DDExtTimeout=1000
DefaultDirIsHome=1
TemporaryDirectoryAppendSession=0
TemporaryDirectoryAppendPath=1
TemporaryDirectoryCleanup=1
ConfirmTemporaryDirectoryCleanup=1
PreservePanelState=1
Theme=OfficeXP
PathInCaption=0
MinimizeToTray=0
BalloonNotifications=1
NotificationsTimeout=10
NotificationsStickTime=2
CopyParamAutoSelectNotice=1
SessionToolbarAutoShown=1
LockToolbars=0
AutoOpenInPutty=0
LastMonitor=0
VersionHistory=40206721,stable

[Configuration\Logging]
Logging=1
LogFileName=C:%5CBatch_Files%5CResults%5C!Y!M!DWinSCP-ModernAdvertising.out
LogFileAppend=1
LogWindowLines=100
LogProtocol=0
LogActions=0
LogView=0
LogWindowOnStartup=1
LogWindowParams=138;138;638;538;0

[Configuration\Interface\CopyParam]
AddXToDirectories=1
Masks=%2A.%2Ahtml;%20%2A.htm;%20%2A.txt;%20%2A.php;...
FileNameCase=0
PreserveReadOnly=0
PreserveTime=1
PreserveRights=0
IgnorePermErrors=0
Text=rw-r--r--
TransferMode=2
ResumeSupport=1
ResumeThreshold=102400
ReplaceInvalidChars=1
LocalInvalidChars=/%5C:%2A%3F"<>|
CalculateSize=1
ExcludeFileMask=
NegativeExclude=0
ClearArchive=0
CPSLimit=0
Queue=0
QueueNoConfirmation=1
QueueIndividually=0
NewerOnly=0
CopyParamList=-1

[Configuration\Interface\NewDirectory]
Valid=00

[Configuration\Interface\SynchronizeChecklist]
WindowParams=0;-1;-1;600;450;0
ListParams=1;1|150,1;100,1;80,1;130,1;25,1;100,1;80,1;130,1|0;1;2;3;4;5;6;7

[Configuration\Interface\FindFile]
WindowParams=646,481
ListParams=3;1|125,1;181,1;80,1;122,1|0;1;2;3

[Configuration\Interface\ConsoleWin]
WindowSize=570,430

[Configuration\History\SpeedLimit]
0=Unlimited
1=1024
2=512
3=256
4=128
5=64
6=32
7=16
8=8

[Configuration\History\Mask]
0=%2A.xml
1=%2A.%2Ahtml;%20%2A.htm;%20%2A.txt;%20%2A.php;%20%2A.php3;%...

[Configuration\Interface\Editor]
FontName=Courier%20New
FontHeight=-12
FontStyle=0
FontCharset=1
WordWrap=0
FindTextA=
ReplaceTextA=
FindMatchCase=0
FindWholeWord=0
FindDown=1
TabSize=7
MaxEditors=500
EarlyClose=2
SDIShellEditor=0
WindowParams=

[Configuration\Interface\QueueView]
Height=100
Layout=70,160,160,80,80,80
Show=1
LastHideShow=1
ToolBar=0

[Configuration\Interface\Updates]
Period=7
LastCheck=29BACC8C2EA5E340
HaveResults=1
ShownResults=0
BetaVersions=2
ConnectionType=1
ProxyHost=
ProxyPort=8080
ForVersion=40206721
Version=0
Message=
Critical=0
Release=
Disabled=0
Url=
UrlButton=

[Configuration\Interface\Explorer]
ToolbarsLayout=Queue_Visible=1,Queue_LastDock=QueueDock,...
DirViewParams=0;1;0|150,1;70,1;101,1;79,1;62,1;55,1;20,0;150,0;125,0|0;1;8;2;3;4;5;6;7
LastLocalTargetDirectory=C:%5CUsers%5Cmnowicki.CCI%5CDocuments
StatusBar=1
WindowParams=431;488;1031;888;0
ViewStyle=0
ShowFullAddress=1
DriveView=1
DriveViewWidth=180

[Configuration\Interface\Commander]
ToolbarsLayout=Queue_Visible=1,Queue_LastDock=QueueDock,...
CurrentPanel=1
LocalPanelWidth=000000000000E03F
SwappedPanels=0
StatusBar=1
WindowParams=387;359;1237;1009;0
ExplorerStyleSelection=0
PreserveLocalDirectory=0
CompareByTime=1
CompareBySize=0
FullRowSelect=1
TreeOnLeft=0

[Configuration\Interface\Commander\LocalPanel]
DirViewParams=0;1;0|150,1;70,1;101,1;79,1;62,1;55,0|0;1;2;3;4;5
StatusBar=1
DriveView=0
DriveViewHeight=100
DriveViewWidth=100

[Configuration\Interface\Commander\RemotePanel]
DirViewParams=0;1;0|150,1;70,1;101,1;79,1;62,1;55,0;20,0;150,0;125,0|0;1;8;2;3;4;5;6;7
StatusBar=1
DriveView=0
DriveViewHeight=100
DriveViewWidth=100

[Configuration\Security]
UseMasterPassword=0
MasterPasswordVerifier=

[Configuration\Interface\Editor\0]
FileMask=%2A.%2A
Editor=0
ExternalEditor=
ExternalEditorText=1
SDIExternalEditor=0
DetectMDIExternalEditor=0

[Configuration\Interface\Editor\1]
FileMask=%2A.%2A
Editor=1
ExternalEditor=notepad.exe
ExternalEditorText=1
SDIExternalEditor=0
DetectMDIExternalEditor=0

[Sessions\Modern%20Advertising]
HostName=custom.adage.com
UserName=craincorp
Password=A35C7E5BCF7001F55930973F2E3D35323F332E2C3F292F28333172...
LocalDirectory=D:%5CRaidshare%5CMerlin%5CExports%5CLicensee%5CLicensee-ModernAdvertising%20-%20AA
Password=A35C7E5238D2CEC917262C1512D12C1F0A3E3F2E3D35323F332E2C...
RemoteDirectory=/home/aa%20pdfs

[Configuration\History\RemoteTarget]
0=/incoming/%2A.%2A

[Configuration\History\LocalTarget]
0=D:%5CRaidshare%5CMerlin%5CExports%5CVendors%5CCMG%5C%2A.%2A
martin

Re: DeleteToRecycleBin doesn't seem to work

It works for me. What exactly does your INI file look like?
MarkNowicki

DeleteToRecycleBin doesn't seem to work

I have two transfer Batch Files setup which get their settings from custom INI files for the sites. I would like to transfer files and after the transfer delete the Source Files.
I am transferring from a Windows 2003 Server via SFTP.

call "C:\Program Files\WinSCP\winscp.exe" /console /script=C:\Batch_Files\SFTP-ModernAdvertising.txt /ini="C:\Program Files\WinSCP\WinSCP-ModernAdvertising.ini"

cd "aa text"
put "D:\Raidshare\Merlin\Exports\Licensee\Licensee-ModernAdvertising-AA\*.xml"
# Disconnect
close
# Exit WinSCP
exit

In the INI file I have the following line

DeleteToRecycleBin=1

The batch files works, reads settings from the INI file, connects, transfers the files and exits properly. It just doesn't delete the source files after the transfer.

Do I have something set wrong to get it to delete the files or is this something that cannot be done?


Thanks
Mark Nowicki
Crain Communications Inc