A Windows XP help forum. PCbanter

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.

Go Back   Home » PCbanter forum » Microsoft Windows 7 » Windows 7 Forum
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

xcopy Option?



 
 
Thread Tools Rate Thread Display Modes
  #16  
Old August 8th 12, 02:27 AM posted to alt.windows7.general
Gene E. Bloch[_2_]
external usenet poster
 
Posts: 7,485
Default 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  
Old August 8th 12, 04:02 AM posted to alt.windows7.general
Gene Wirchenko
external usenet poster
 
Posts: 426
Default 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  
Old August 8th 12, 04:04 AM posted to alt.windows7.general
Gene Wirchenko
external usenet poster
 
Posts: 426
Default 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  
Old August 8th 12, 07:45 AM posted to alt.windows7.general
Nil[_2_]
external usenet poster
 
Posts: 2,170
Default 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  
Old August 8th 12, 02:24 PM posted to alt.windows7.general
Bill Blanton[_2_]
external usenet poster
 
Posts: 23
Default 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  
Old August 8th 12, 05:18 PM posted to alt.windows7.general
Gene E. Bloch[_2_]
external usenet poster
 
Posts: 7,485
Default 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  
Old August 8th 12, 08:10 PM posted to alt.windows7.general
Bill Blanton[_2_]
external usenet poster
 
Posts: 23
Default 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  
Old August 8th 12, 11:29 PM posted to alt.windows7.general
Gene E. Bloch[_2_]
external usenet poster
 
Posts: 7,485
Default 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  
Old August 9th 12, 12:55 PM posted to alt.windows7.general
No_Name
external usenet poster
 
Posts: 76
Default 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


  #25  
Old August 9th 12, 07:10 PM posted to alt.windows7.general
Gene E. Bloch[_2_]
external usenet poster
 
Posts: 7,485
Default xcopy Option?

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.

--
Gene E. Bloch (Stumbling Bloch)
  #26  
Old August 12th 12, 12:52 PM posted to alt.windows7.general
No_Name
external usenet poster
 
Posts: 76
Default 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
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off






All times are GMT +1. The time now is 08:52 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 PCbanter.
The comments are property of their posters.