English
Forum

Delete and attribute in Folders

 
Hello together
..I Search a Possibility, Ordner (directories) complete with Content To delete. If possible into windows-wastebasket. Additional another question: Can the Attribut one Folder read and Change ? - for each Tipp be I grateful
 
05/26/06  
 



Since no response coming, think was too no Solution parat- but I have dug (How says Carlo. in the Wühlkiste have I the following found (no idea of whom but perfect )
CompileMarkSeparation
PROC FILE_ACTION

    PARAMETERS action$,file$,file2$,noconfirm%,norecycle%
    DECLARE opstruct#,file#,file2#
    Declare FOF_Flag%,Action&,DO%
    Parameter 1: Auszuführende Aktion=COPY, DELETE, RENAME, MOVE
    Parameter 2: Quelldatei
    Parameter 3: Zielldatei
    Parameter 4: 0 = User erst fragen, 1= ohne Nachfrage löschen
    Parameter 5: 0 = In Papierkorb verschieben, 1= "endgültig" löschen
    Parameters Action$,file$,file2$,noconfirm%,norecycle%
    LET DO%=0

    IF @upper$(Action$)="RENAME"

        Let Action&=4

    elseIF @upper$(Action$)="COPY"

        Let Action&=2

    elseIF @upper$(Action$)="MOVE"

        Let Action&=1

    elseIF @upper$(Action$)="DELETE"

        Let Action&=3

    else

        @messagebox("Diese Funktion ist nicht bekannt!","Aktion wird nicht ausgeführt!",64)
        LEt DO%=1

    endif

    IF DO%=0

        Case noconfirm% : Let noconfirm%=16
        CaseNot norecycle% : Let norecycle%=64
        Let FOF_Flag% = @Or(noconfirm%,norecycle%)
        Dim opstruct#,30
        Dim file#,Add(Len(file$),2)
        Dim file2#,Add(Len(file2$),2)
        String file#,0=@Add$(file$,@Chr$(0))
        String file2#,0=@Add$(file2$,@Chr$(0))
        Long opstruct#,0=%hwnd  Handle des aufrufenden Fensters
        Long opstruct#,4=Action&
        Long opstruct#,8=file#
        Long opstruct#,12=file2#
        Word opstruct#,16=FOF_Flag%
        Long opstruct#,18=0 Hier steht nach dem Aufruf 1, wenn User abgebrochen hat
        Long opstruct#,22=0  Unbedingt immer auf Null setzen!
        Long opstruct#,26=0  Zeiger(Bereich) auf Überschrift des Fortschrittsdialogs

        IF @Gt(@ShFileOperation(opstruct#),0)

            @MessageBox("Es ist ein Fehler aufgetreten","ShFileOperation",16)

        EndIf

    endif

    Dispose file#
    Dispose file2#
    Dispose opstruct#

EndProc

File_action "RENAME","C:WINDOWSTEMPTEST.DOC","C:WINDOWSTEMPTEST2.DOC",0,0
File_action "COPY","C:WINDOWSTEMPTEST2.DOC","C:WINDOWSTEMPTEST.DOC",0,0
File_action "MOVE","C:WINDOWSTEMPTEST2.DOC","C:WINDOWSTEMPTEST3.DOC",0,0
File_action "DELETE","C:TEMP001","",0,0

here are 4 Options abgedeckt
circa Ordner-attributes To Change has me G. Putschalka a code zugeschickt with the I but yet in the Clinch stick. If itself here success einstellt, becomes it displayed
 
05/28/06  
 



Hrm under whom Codesnippets are for Examples...
 
05/28/06  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

472 Views

Untitledvor 0 min.
E.T.11/22/23
Manfred Barei03/18/20
AndreasS01/22/19
Uwe Lang02/19/17
More...

Themeninformationen

this Topic has 2 subscriber:

unbekannt (2x)
iF (1x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie