FileDelete,"%Target_Sys\*.*"
Why does this command erase if there are subdirectories of destination folder ? Nevertheless, I only want the files in the destination folder to be deleted.
http://winbuilder.ne...html#FileDelete
Best regards
[Fixed] The usage of the FileDelete with *.* wildcards
Started by
Max_Real Qnx
, Mar 15 2010 08:01 PM
9 replies to this topic
#1
Posted 15 March 2010 - 08:01 PM
#2
Posted 15 March 2010 - 08:36 PM
Similar problem also exist to Filecopy
This line of Multi7 project is supposed to copy all .exe files from boot.wim windows to target windows folder
This line of Multi7 project is supposed to copy all .exe files from boot.wim windows to target windows folder
FileCopy,"%bw%\*.exe","%tw%\"but it also creates sub folders and files in winsxs directory.
#3
Posted 15 March 2010 - 09:20 PM
@JFX
I found the solution of yours
FileCopy,"%bw%\*.exe","%tw%\",norec
@Max_Real Qnx,
sorry, norec is not available with filedelete
I found the solution of yours
FileCopy,"%bw%\*.exe","%tw%\",norec
@Max_Real Qnx,
sorry, norec is not available with filedelete
#4
Posted 15 March 2010 - 09:25 PM
The deault behaviour of the file commands was changed. upon request from Vista or Win7 projects, if i remember right.
I already complained about this back then, but because the behaviour was already heavy in use, Peter did not wanted to change it, so that non recursive would have been default again.
I already complained about this back then, but because the behaviour was already heavy in use, Peter did not wanted to change it, so that non recursive would have been default again.
#5
Posted 15 March 2010 - 10:02 PM
@ Lancelot .. i tested your fix with 64 .. more programs work Thanks...............
#6
Posted 06 April 2010 - 01:26 PM
I added NOREC to FileDelete.
Syntax now:
is should be correct, while syntax.html is not always actually updated.
Peter
Syntax now:
FileCopy,FromFile,ToDir[,PRESERVE][,NOWARN][,NOREC][,SHOW] FileDelete,FileToDelete[,NOWARN][,NOREC] DirCopy,FromDir,ToDir[,SHOW] DirDelete,DirToDelete[,FAST]Please take care that magic wand
Peter
#7
Posted 06 April 2010 - 01:48 PM
So you're back on the development team, Peter?
#8
Posted 06 April 2010 - 01:53 PM
All the time I was in the development team, and did a lot of bug fixes and enhancements.
I only decided to stop wasting my time when I try to discuss ideas and then have to read about my lying and aftergaming etc.
As I already told you in a different topic:
Ignoring posts which are not worth to read, gives a lot of time to do senceful things!
Peter
I only decided to stop wasting my time when I try to discuss ideas and then have to read about my lying and aftergaming etc.
As I already told you in a different topic:
Ignoring posts which are not worth to read, gives a lot of time to do senceful things!
Peter
#9
Posted 06 April 2010 - 02:31 PM
Ahh, Ok. I just had the impression, that you've had left, becaue of said postings.
Glad to have been wrong.
Glad to have been wrong.
#10
Posted 06 April 2010 - 11:17 PM
Hi Peter,
Thanks -- NOREC added to FileDelete is a nice improvement!
Regards,
Galapo.
Thanks -- NOREC added to FileDelete is a nice improvement!
Regards,
Galapo.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users