| |
|
|
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? CompileMarkSeparationDef @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
|
|
|
| |
|
|
|
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. |
|
|
| |
|
|
|
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. |
|
|
| |
|
|
|
| [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. |
|
|
| |
|
|
|
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 |
|
|
| |
|
|
|
| then is your wastebasket presumably abgestellt. |
|
|
| |
|
|
|
GDL | Nö, everything I with the Explorer lösche alights in the wastebasket.
Hello Georg |
|
|
| |
|
|