JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 21.10.2010, 19:09
rannseier2 rannseier2 is offline
Storm
 
Join Date: Jul 2009
Location: Deutsche Telekom AG
Posts: 203
Default Ausführen eigener Scripte

Moin..

Wie sieht es mit Benutzerdefinierten Scripten aus, die Aktionsabhängig gestartet werden?

Wenn ein Entpackvorgang fertig ist würde ich gern folgendes Script auf den Downloadordner loslassen:


Code:
@echo off & setlocal 
set D=%temp%\DelEmptyFolders.vbs 
echo DeleteEmptyFolders(CreateObject("Scripting.FileSystemObject").GetFolder(WScript.Arguments(0)))>%D% 
echo Sub DeleteEmptyFolders(Ordner):For Each Unter In Ordner.SubFolders:DeleteEmptyFolders(Unter)>>%D% 
echo If (Unter.SubFolders.Count+Unter.Files.Count)=0 Then:Unter.Delete:End If:Next:End Sub>>%D% 
cscript //nologo %D% "%~dp0" 
del %D%

Gruß,
Karl
Reply With Quote
  #2  
Old 21.10.2010, 19:10
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 73,457
Default

Das ist möglich sobald der Eventmanager wieder da ist (SUFU).

GreeZ pspzockerscene
__________________
JD Supporter, Plugin Dev. & Community Manager

Erste Schritte & Tutorials || JDownloader 2 Setup Download
Spoiler:

A users' JD crashes and the first thing to ask is:
Quote:
Originally Posted by Jiaz View Post
Do you have Nero installed?
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 16:23.
Provided By AppWork GmbH | Privacy | Imprint
Parts of the Design are used from Kirsch designed by Andrew & Austin
Powered by vBulletin® Version 3.8.10 Beta 1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.