Copy Script (need help)

Suggest, post, or discuss plugins for Deluge
User avatar
vodkaholic27
Member
Member
Posts: 25
Joined: Thu Apr 12, 2012 1:48 pm
Contact:

Re: Copy Script (need help)

Post by vodkaholic27 »

crazycaveman wrote:It's all good. SCP stands for "Secure copy" and is usually found on *nix based computers, installed with ssh. In my case, I installed the cygwin suite, which allows you to install Linux like programs on Windows, and set up the ssh service through that. But, like I said earlier, this is just one of several ways to copy files from a Linux box to Windows.
So for me to set this up I would say am in "way over my head" it looks like :)
crazycaveman
Member
Member
Posts: 28
Joined: Mon Apr 30, 2012 3:08 am

Re: Copy Script (need help)

Post by crazycaveman »

Not necessarily. If you can setup an FTP server on your Linux box, you could use FTPGrab to connect from your Windows machine to your seedbox every so often and grab any new files it sees in the completed directory. You'll just need to have python 2.x installed on your Windows machine. Maybe that would be better than trying to push from the seedbox to home
User avatar
vodkaholic27
Member
Member
Posts: 25
Joined: Thu Apr 12, 2012 1:48 pm
Contact:

Re: Copy Script (need help)

Post by vodkaholic27 »

crazycaveman wrote:Not necessarily. If you can setup an FTP server on your Linux box, you could use FTPGrab to connect from your Windows machine to your seedbox every so often and grab any new files it sees in the completed directory. You'll just need to have python 2.x installed on your Windows machine. Maybe that would be better than trying to push from the seedbox to home
Hey this Python?
User avatar
vodkaholic27
Member
Member
Posts: 25
Joined: Thu Apr 12, 2012 1:48 pm
Contact:

Re: Copy Script (need help)

Post by vodkaholic27 »

Hey as for the .bat window showing all the time I found this

http://superuser.com/questions/140047/h ... and-window

Save the following as wscript, for instance, hidecmd.vbs after replacing "testing.bat" with your batch file's name.

Code: Select all

Set oShell = CreateObject ("Wscript.Shell") 
Dim strArgs
strArgs = "cmd /c testing.bat"
oShell.Run strArgs, 0, false
Is this any good?
Cheers

edit
I made a file with this in

Code: Select all

Set oShell = CreateObject ("Wscript.Shell") 
Dim strArgs
strArgs = "cmd /Q Vodkaholic/Software/copy_completed.bat"
oShell.Run strArgs, 0, false
and trying to run it using
Q:\Vodkaholic\Software\copy_completed.vbs "%I" "%N" "%D" (back on the utorrent one atm)

Didn't work tho
Will play some more.
crazycaveman
Member
Member
Posts: 28
Joined: Mon Apr 30, 2012 3:08 am

Re: Copy Script (need help)

Post by crazycaveman »

Unfortunately, you also have to pass the arguments that call that script to the batch file. I'm sure there's an easy way to do that, just need to find it. Also, for FTPGrab, you need 2.7.3

edit: try the following:

Code: Select all

Set oShell = CreateObject ("Wscript.Shell") 
Set args = WScript.Arguments
Dim strArgs
strArgs = "Q:\Vodkaholic\Software\copy_completed.bat """& args(0) &""" """& args(1) &""" """& args(2) &""""
oShell.Run strArgs, 0, false
Give that a go and see if it works. Cursory testing on my end indicates it does, but that was running it manually, not from a client...
Sokonomi
New User
New User
Posts: 3
Joined: Sat Aug 08, 2015 7:27 am

Re: Copy Script (need help)

Post by Sokonomi »

Sorry for hijacking the thread, but im on a similar boat. ;)

I want a torrent to start in "E:\Incomplete\", pooping out a copy to E:\Complete\ when it finishes downloading,
and once it reaches the seeding ratio/timelimit set in deluge, I want it to delete torrent AND data (excluding copy).

I can make the execute plugin run copy.bat when it finishes downloading,
I can make deluge remove the torrent when it hits the seed ratio/timelimit,
but I cant make it delete data when it finishes seeding.

Any way around that?
Post Reply