English
Source / code snippets

Files copy Ordner Unterordner

 

Heinz
Bernhard
a friendly Greeting into Profaner-round!

I had to several weeks already times the same inquire set, have but unfortunately
no response found. Perhaps have so did i something wrong made.
my selected Help!!! my Sorgenkind:
copy of Folders with Subfolders and Files, with Überschreiben one evtl. already present gleichnamigen Folder.

have of Andreas Miethe of 1998 One simple Backup-Program found. it disturbing me the manuelle close the Fensters.

appeal for XCOPY32 a Verzeichnisstruktur anzulegen: commands$=xcopy32.exe ;quelle$; ;ziel$; /T /E

XCOPY32 places a Verzeichnisstruktur on:
Winexecwait(commands$,1)

hereon appear The Dateiliste: exits-XCopie32.
tappt im dunkeln must on the Schliesskreuz closed go.
can a Schliessung with command access go? with DestroyWindow() and the lever goes it not at me.

or, there einfachere Solutions - I have XProfan 9.0?
for the indicated the command would I very grateful !
beforehand already my cordial Thanks, for eure endeavours.
Heinz Bernhard
 
XProfan-Version 10+11
Betriebssystem Win7
09/08/06  
 



helps the?
CompileMarkSeparation
Def @SHFileOperation(1) !"SHELL32","SHFileOperationA"

Proc Fileaction

    Parameters Action$,File$,File2$,noconfirm%,norecycle%
    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
    Declare FOF_Flag%,Action&,DO%,Fehler&
    Declare opstruct#,file#,file2#
    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#    pfrom : hier der zu löschende Ordner
        Long opstruct#,12=file2#      pto (muß 0 oder eine Bereichvar. mit Zieldateinamen																							 z.B. bei Umbenennung sein
        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
        LET FEHLER&=@ShFileOperation(opstruct#)

        IF @equ(@long(opstruct#,18),1)

            @MessageBox("Die Dateioperation wurde abgebrochen!","Operation abgebrochen!",64)

        ELSEIF @neq(Fehler&,0)

            @MessageBox("Es ist ein Fehler aufgetreten","ShFileOperation "+@str$(Fehler&),16)

        EndIf

        Dispose file#
        Dispose file2#
        Dispose opstruct#

    endif

EndProc

REM Beispiel
Fileaction "COPY","C:WINDOWS","E:TEMP",0,0
Fileaction "DELETE",&quo
MP","",1,1
 
09/08/06  
 




Heinz
Bernhard
Hello, Andreas!
this is Yes super with welchem tempo The response coming.
I can it unfortunately first tommorrow testing.
i want but already beforehand, alike whether it helps or not, one integrally-integrally herzliches
Thank you say. I find already your attempt To help very cool. I login me tommorrow again here - many Thanks.
Heinz
 
XProfan-Version 10+11
Betriebssystem Win7
09/08/06  
 




Heinz
Bernhard
Hello, Andreas !

it has me no silence let, I have it still today ausprobiert - and our Sign in the Community have I finally again found.
everything has worked, and I am you very, very grateful for your Program.
Have means many Thanks for your personal endeavour To my trouble
Greeting and Thanks says you the Heinz
 
XProfan-Version 10+11
Betriebssystem Win7
09/08/06  
 



Try at next time whom Codefinder - whom have I extra for made .

whom find You z.B. supra in the Popupmenü under Library => Codes => Codefinder...

salvo.
 
09/08/06  
 




Heinz
Bernhard
Hello, iF,
thanks for Info - I will in future mind.
have but as an afterthought To my trouble nothing found. nevertheless thanks for The future.
Greeting Heinz
 
XProfan-Version 10+11
Betriebssystem Win7
09/09/06  
 



is too difficult, deshal have ichs again posted.
 
09/09/06  
 



[quote:eceff73b66=Heinz Bernhard]Hello, iF,
thanks for Info - I will in future mind.
have but as an afterthought To my trouble nothing found. nevertheless thanks for The future.
Greeting Heinz[/quote:eceff73b66]
Hm naja You want Yes z.B. copy, means in the Codefinder on k weg and to copy search, and there standing the Thread.
 
09/09/06  
 




Heinz
Bernhard
Hello, If!
over again thanks for Tipp.
now have I finally too whom Codefinder begriffen. find I lovely - and is simply.
Greeting Heinz
 
XProfan-Version 10+11
Betriebssystem Win7
09/10/06  
 




GDL
Hi

@Andreas

Parameter 5: 0 = In wastebasket move, 1= for good delete

alike whether I ne zero or ne one use, it'll always for good deleted.

Hello
Georg
 
Windows7 Xprofan 8,9,10 [...]  [...] 
06/25/07  
 



then is your wastebasket presumably abgestellt.
 
06/25/07  
 




GDL
Nö, everything I with the Explorer lösche alights in the wastebasket.

Hello
Georg
 
Windows7 Xprofan 8,9,10 [...]  [...] 
06/25/07  
 




Zum Quelltext


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

26.667 Views

Untitledvor 0 min.
PETER195607/18/18
R.Schneider03/20/17
Uwe Lang07/20/13
maxpayne200104/29/13
More...

Themeninformationen



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