If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
|
Thread Tools | Rate Thread | Display Modes |
#16
|
|||
|
|||
xcopy Option?
On Tue, 07 Aug 2012 21:01:43 -0400, Nil wrote:
On 07 Aug 2012, Gene Wirchenko wrote in alt.windows7.general: Sorry. Part of my issue is that I want to delete the .htm files first so that if I delete a .html, its .htm is gone. Windows will delete my .html files when I do del *.htm I dislike this "helpfulness". I never knew that the built in DEL command behaved that way. That's not good. I use JPSoft's CMD replacement, TCC LE (http://jpsoft.com/tccle-cmd-replacement.html) and it behaves in a more sane way. You might consider it. The free version has been good enough for me. It was definitely new to me as well, and it sucks :-) My experimentation revealed not only that cmd acts the way Wirchenko said, but even putting the action into a loop to act on individual files doesn't help. I went a bit further and discovered the underlying problem is that dir treats .htm and html as the same. As in dir *.htm prints the html files too - but, oddly, not vice versa. Ouch. So thanks for the link to JPSoft's program. Although since I never experienced this before, it's probably more important for the OP than for me - or, for that matter, you as well... -- Gene E. Bloch (Stumbling Bloch) |
Ads |
#17
|
|||
|
|||
xcopy Option?
On Tue, 07 Aug 2012 19:51:54 -0500, Bob I wrote:
[snip] What you say you want to do in deleting files sounds rather confusing. This is for backing data from another computer. My printer is attached to the backup data computer. (The work computer is disconnected from the backup data computer which is my main box, and it is going to stay that way!) My printer program only understands 8+3 filenames so I need an 8+3 version of my .html files. Sincerely, Gene Wirchenko |
#18
|
|||
|
|||
xcopy Option?
On Tue, 07 Aug 2012 19:39:48 -0500, Char Jackson
wrote: [snip] Are you required to use .htm and .html, or can you use other extensions that would make it easier to differentiate one set of files from another? Such as .htm and .htm.bak or simply .bak? No. Instead of .htm, I have decided to use .ht. This kludge works. Sincerely, Gene Wirchenko |
#19
|
|||
|
|||
xcopy Option?
On 07 Aug 2012, "Gene E. Bloch" wrote in
alt.windows7.general: I went a bit further and discovered the underlying problem is that dir treats .htm and html as the same. As in dir *.htm prints the html files too - but, oddly, not vice versa. That's just bizarre. I can't believe MS let such a bug go on all this time, especially one that could so easily result in unintended data loss. So thanks for the link to JPSoft's program. Although since I never experienced this before, it's probably more important for the OP than for me - or, for that matter, you as well... I started with their 4DOS product back in the DOS and early Windows days. I used to write lots of fancy batch files that took advantage of its advanced featured. I don't do much of that any more, but I still appreciate that TCC works better than CMD... especially after hearing this horror story about DEL! |
#20
|
|||
|
|||
xcopy Option?
On 8/7/2012 21:27, Gene E. Bloch wrote:
On Tue, 07 Aug 2012 21:01:43 -0400, Nil wrote: On 07 Aug 2012, Gene wrote in alt.windows7.general: Sorry. Part of my issue is that I want to delete the .htm files first so that if I delete a .html, its .htm is gone. Windows will delete my .html files when I do del *.htm I dislike this "helpfulness". I never knew that the built in DEL command behaved that way. That's not good. My experimentation revealed not only that cmd acts the way Wirchenko said, but even putting the action into a loop to act on individual files doesn't help. I went a bit further and discovered the underlying problem is that dir treats .htm and html as the same. As in dir *.htm prints the html files too - but, oddly, not vice versa. Ouch. Probably because the short name of foo.html is FOO~1.HTM Powershell's Remove-Item (alias DEL) is another alternative. |
#21
|
|||
|
|||
xcopy Option?
On Wed, 08 Aug 2012 09:24:59 -0400, Bill Blanton wrote:
On 8/7/2012 21:27, Gene E. Bloch wrote: On Tue, 07 Aug 2012 21:01:43 -0400, Nil wrote: On 07 Aug 2012, Gene wrote in alt.windows7.general: Sorry. Part of my issue is that I want to delete the .htm files first so that if I delete a .html, its .htm is gone. Windows will delete my .html files when I do del *.htm I dislike this "helpfulness". I never knew that the built in DEL command behaved that way. That's not good. My experimentation revealed not only that cmd acts the way Wirchenko said, but even putting the action into a loop to act on individual files doesn't help. I went a bit further and discovered the underlying problem is that dir treats .htm and html as the same. As in dir *.htm prints the html files too - but, oddly, not vice versa. Ouch. Probably because the short name of foo.html is FOO~1.HTM Powershell's Remove-Item (alias DEL) is another alternative. I just looked at the 8.3 names. You're right, but IMO Microsoft isn't :-) -- Gene E. Bloch (Stumbling Bloch) |
#22
|
|||
|
|||
xcopy Option?
On 8/8/2012 12:18, Gene E. Bloch wrote:
On Wed, 08 Aug 2012 09:24:59 -0400, Bill Blanton wrote: On 8/7/2012 21:27, Gene E. Bloch wrote: I went a bit further and discovered the underlying problem is that dir treats .htm and html as the same. As in dir *.htm prints the html files too - but, oddly, not vice versa. Probably because the short name of foo.html is FOO~1.HTM I just looked at the 8.3 names. You're right, but IMO Microsoft isn't :-) Backward compatibility rears it ugly head again.. the beast cannot die. |
#23
|
|||
|
|||
xcopy Option?
On Wed, 08 Aug 2012 15:10:25 -0400, Bill Blanton wrote:
On 8/8/2012 12:18, Gene E. Bloch wrote: On Wed, 08 Aug 2012 09:24:59 -0400, Bill Blanton wrote: On 8/7/2012 21:27, Gene E. Bloch wrote: I went a bit further and discovered the underlying problem is that dir treats .htm and html as the same. As in dir *.htm prints the html files too - but, oddly, not vice versa. Probably because the short name of foo.html is FOO~1.HTM I just looked at the 8.3 names. You're right, but IMO Microsoft isn't :-) Backward compatibility rears it ugly head again.. the beast cannot die. I'm not so sure...backwards /incompatibility/ strikes me as a better name :-) -- Gene E. Bloch (Stumbling Bloch) |
#24
|
|||
|
|||
xcopy Option?
Gene E. Bloch wrote:
On Tue, 07 Aug 2012 21:01:43 -0400, Nil wrote: On 07 Aug 2012, Gene Wirchenko wrote in alt.windows7.general: Sorry. Part of my issue is that I want to delete the .htm files first so that if I delete a .html, its .htm is gone. Windows will delete my .html files when I do del *.htm I dislike this "helpfulness". I never knew that the built in DEL command behaved that way. That's not good. I use JPSoft's CMD replacement, TCC LE (http://jpsoft.com/tccle-cmd-replacement.html) and it behaves in a more sane way. You might consider it. The free version has been good enough for me. It was definitely new to me as well, and it sucks :-) My experimentation revealed not only that cmd acts the way Wirchenko said, but even putting the action into a loop to act on individual files doesn't help. I went a bit further and discovered the underlying problem is that dir treats .htm and html as the same. One wonders if it would treat "*.htm " and "*.htm" the same...i,e, defining a space as part of the search criteria?? *.html would certainly be found under the second search, but, I'm thinking, not under the first search!! Daniel |
#26
|
|||
|
|||
xcopy Option?
Gene E. Bloch wrote:
On Thu, 09 Aug 2012 21:55:00 +1000, wrote: Gene E. Bloch wrote: On Tue, 07 Aug 2012 21:01:43 -0400, Nil wrote: On 07 Aug 2012, Gene Wirchenko wrote in alt.windows7.general: Sorry. Part of my issue is that I want to delete the .htm files first so that if I delete a .html, its .htm is gone. Windows will delete my .html files when I do del *.htm I dislike this "helpfulness". I never knew that the built in DEL command behaved that way. That's not good. I use JPSoft's CMD replacement, TCC LE (http://jpsoft.com/tccle-cmd-replacement.html) and it behaves in a more sane way. You might consider it. The free version has been good enough for me. It was definitely new to me as well, and it sucks :-) My experimentation revealed not only that cmd acts the way Wirchenko said, but even putting the action into a loop to act on individual files doesn't help. I went a bit further and discovered the underlying problem is that dir treats .htm and html as the same. One wonders if it would treat "*.htm " and "*.htm" the same...i,e, defining a space as part of the search criteria?? *.html would certainly be found under the second search, but, I'm thinking, not under the first search!! Daniel You could have tried it yourself. You would have learned that the space is ignored. Oh!! O.K.!! Daniel |
|
Thread Tools | |
Display Modes | Rate This Thread |
|
|