RE: Can't delete file

2004-01-20 Thread Dave Korn
 

 -Original Message-
 From: Aurangzeb M. Agha 

 Dave --
 
 That worked!  Thank goodness, I thought I'd have to live with 
 an unwanted folder forever.

  Hooray!
 
 I'm curious--was what you suggested possible just because I was lucky?
 What if the names of the files had been even longer; would 
 your suggestion not have worked?!
 
 Thanks so much.
 
 Sincerely,
 
 Zeb

  Yep, it could have been the case.  It's a known class of bugs in software:
when special characters need to be escaped, the effect of doing so is to
lengthen any string, such as a filename, that contains them, thereby
sometimes making them longer than some presupposed limit somewhere in the
software or operating system.  (It's also a known cause of network security
holes through buffer overflows in server software.)  If there had been a
whole load more at and ampersand signs in that filename, you might have had
to get *real* tricky with it :)  Fortunately, reducing the left-hand part of
the path did the job.  Glad to help!


cheers, 
  DaveK
-- 
Can't think of a witty .sigline today



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Can't delete file

2004-01-19 Thread Kleven Bingham
If you have any trouble with the method below (which should work just 
fine, AFAICT) you should be able to rename the file in explorer to 
something much more friendly, i.e. delfile.dat, and then simply delete it.

Seth Rubin wrote:

All DOS files are also stored in 8.3 name format.  Your file is probably
stored as WCTPRO~1.ACT
To see the 8.3 name belonging to a file, do DIR /X from a DOS window.  You
can fully use this name to access the file in question.  E.g.
DEL WCTPRO~1.ACT

-- Seth

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf
Of Aurangzeb M. Agha
Sent: Sunday, January 18, 2004 9:52 PM
To: Cygwin Mail List
Subject: Can't delete file
While running wget on a site I run, I ended up downloading the following
file:
[EMAIL PROTECTED]slid=40product=Hoteltype=PropertyInformationlang
=ENGaffiliateId=10006093hotelId=10214537include=OVERVIEWdid=14numberAdu
lts=1numberRooms=1dateSelected=falseneedDates=YdebugXML=false
Problem is that now I can't get rid of it.  I'm guessing this is due to
the M$ char limit.  I've tried everything from:
ls *wctProp* | xargs rm -f

to 'rm -f *', but no luck.  Every time, I get the same thing:

$ rm
[EMAIL PROTECTED]slid\=40\product\=Hotel\type\=PropertyInformat
ion\lang\=ENG\af
filiateId\=10006093\hotelId\=10214537\include\=OVERVIEW\did\=14\numberAd
ults\=1\numberRooms\=1
\dateSelected\=false\needDates\=Y\debugXML\=false
rm: cannot remove
[EMAIL PROTECTED]slid=40product=Hoteltype=PropertyInformationlan
g=ENG
affiliateId=10006093hotelId=10214537include=OVERVIEWdid=14numberAdults=1
numberRooms=1dateSelec
ted=falseneedDates=YdebugXML=false': File or path name too long
Anyone have any idea what I can do?  I've tried to remove from a Dos
window, Windows Explorer, but no luck.
Thanks,

Zeb

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/
--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/
 



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/


Re: Can't delete file

2004-01-19 Thread Aurangzeb M. Agha
Thanks for the suggestion Kleven, but neither did the suggestion below
work:

C:\TEMP\downloads\nutch-2003-11-17\www.greece101.comdir /x
 Volume in drive C is C Drive
 Volume Serial Number is 9C5F-537E

 Directory of C:\TEMP\downloads\nutch-2003-11-17\www.greece101.com

01/18/2004  09:50p  DIR  .
01/18/2004  09:50p  DIR  ..
01/18/2004  07:19p  30,217 WCTPRO~1.ACT
[EMAIL PROTECTED]slid=40product
=Hoteltype=PropertyInformationlang=ENGaffiliateId=10006093hotelId=11275352include=OVERVIE
Wdid=4numberAdults=1numberRooms=1additionalCurrency=needDates=YdebugXML=false
01/18/2004  07:19p  28,679 WCTPRO~4.ACT
[EMAIL PROTECTED]slid=40product
=Hoteltype=PropertyInformationlang=ENGaffiliateId=10006093hotelId=10214456include=OVERVIEW
did=4numberAdults=1numberRooms=1dateSelected=falseneedDates=YdebugXML=false
01/18/2004  07:19p  28,607 WCTPRO~2.ACT
[EMAIL PROTECTED]slid=40product
=Hoteltype=PropertyInformationlang=ENGaffiliateId=10006093hotelId=10214461include=OVERVIEW
did=10numberAdults=1numberRooms=1dateSelected=falseneedDates=YdebugXML=false
01/18/2004  07:19p  28,458 WCTPRO~3.ACT
[EMAIL PROTECTED]slid=40product
=Hoteltype=PropertyInformationlang=ENGaffiliateId=10006093hotelId=10214537include=OVERVIEW
did=14numberAdults=1numberRooms=1dateSelected=falseneedDates=YdebugXML=false
   4 File(s)115,961 bytes
   2 Dir(s)   2,398,576,640 bytes free

C:\TEMP\downloads\nutch-2003-11-17\www.greece101.comdel WCTPRO~1.ACT
File Not Found

But trying to rename the long file OR the Dos file isn't permitted either:

C:\TEMP\downloads\nutch-2003-11-17\www.greece101.comREN WCTPRO~4.ACT
WCTPRO~7.ACT
The system cannot find the path specified.

C:\TEMP\downloads\nutch-2003-11-17\www.greece101.comREN WCTPRO~4.ACT
TEST1.ACT
The system cannot find the path specified.

Any other suggestions?

Thanks,

Zeb

On Mon, 19 Jan 2004, Kleven Bingham wrote:

:If you have any trouble with the method below (which should work just
:fine, AFAICT) you should be able to rename the file in explorer to
:something much more friendly, i.e. delfile.dat, and then simply delete it.
:
:Seth Rubin wrote:
:
:All DOS files are also stored in 8.3 name format.  Your file is probably
:stored as WCTPRO~1.ACT
:To see the 8.3 name belonging to a file, do DIR /X from a DOS window.  You
:can fully use this name to access the file in question.  E.g.
:
:DEL WCTPRO~1.ACT
:
:-- Seth
:
:-Original Message-
:From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf
:Of Aurangzeb M. Agha
:Sent: Sunday, January 18, 2004 9:52 PM
:To: Cygwin Mail List
:Subject: Can't delete file
:
:
:While running wget on a site I run, I ended up downloading the following
:file:
:
:[EMAIL PROTECTED]slid=40product=Hoteltype=PropertyInformationlang
:=ENGaffiliateId=10006093hotelId=10214537include=OVERVIEWdid=14numberAdu
:lts=1numberRooms=1dateSelected=falseneedDates=YdebugXML=false
:
:Problem is that now I can't get rid of it.  I'm guessing this is due to
:the M$ char limit.  I've tried everything from:
:
:ls *wctProp* | xargs rm -f
:
:to 'rm -f *', but no luck.  Every time, I get the same thing:
:
:$ rm
:[EMAIL PROTECTED]slid\=40\product\=Hotel\type\=PropertyInformat
:ion\lang\=ENG\af
:filiateId\=10006093\hotelId\=10214537\include\=OVERVIEW\did\=14\numberAd
:ults\=1\numberRooms\=1
:\dateSelected\=false\needDates\=Y\debugXML\=false
:rm: cannot remove
:[EMAIL PROTECTED]slid=40product=Hoteltype=PropertyInformationlan
:g=ENG
:affiliateId=10006093hotelId=10214537include=OVERVIEWdid=14numberAdults=1
:numberRooms=1dateSelec
:ted=falseneedDates=YdebugXML=false': File or path name too long
:
:Anyone have any idea what I can do?  I've tried to remove from a Dos
:window, Windows Explorer, but no luck.
:
:
:Thanks,
:
:Zeb
:
:--
:Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
:Problem reports:   http://cygwin.com/problems.html
:Documentation: http://cygwin.com/docs.html
:FAQ:   http://cygwin.com/faq/
:
:
:--
:Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
:Problem reports:   http://cygwin.com/problems.html
:Documentation: http://cygwin.com/docs.html
:FAQ:   http://cygwin.com/faq/
:
:
:
:
:

-- 
Aurangzeb M. Agha | Email : [EMAIL PROTECTED]
  | Home  : +1 413 586.4863
  | Pager : +1 413 785.7568
  |   : [EMAIL PROTECTED]
73 Bridge St. #15 | Mobile: coming soon
Northampton, MA 01060 | e-Fax : +1 978 246.0770
USA   | PGP id: coming soon


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



RE: Can't delete file

2004-01-19 Thread Dave Korn
 

 -Original Message-
 From: cygwin-owner On Behalf Of Aurangzeb M. Agha

 Thanks for the suggestion Kleven, but neither did the suggestion below
 work:
 
 C:\TEMP\downloads\nutch-2003-11-17\www.greece101.comdir /x  

  Here, maybe this will work: try shortening the overlong path by doing
something like this:

---snip---
C:
cd \temp\downloads
ren nutch-2003-11-17 x
move x \
cd \x
ren www.greece101.com y
cd \x\y
del wctpro~1.act
---snip---

so that the file ends up being called C:\x\y\wctPropInfo(...snip!); with a
bit of luck, reducing the
C:\TEMP\downloads\nutch-2003-11-17\www.greece101.com path part of the
filename to C:\x\y might make the overall filename enough shorter to fit
within the maximum path length.  It does seem as if, because Bash feels the
need to escape all the embedded equals, ampersand, and at signs:

$ rm
[EMAIL PROTECTED]slid\=40\product\=Hotel\type\=PropertyInf
ormat
ion\lang\=ENG\af
filiateId\=10006093\hotelId\=10214537\include\=OVERVIEW\did\=14\num
berAd
ults\=1\numberRooms\=1
\dateSelected\=false\needDates\=Y\debugXML\=false
rm: cannot remove
[EMAIL PROTECTED]slid=40product=Hoteltype=PropertyInformatio
nlan
g=ENG
affiliateId=10006093hotelId=10214537include=OVERVIEWdid=14numberAdu
lts=1
numberRooms=1dateSelec
ted=falseneedDates=YdebugXML=false': File or path name too long

that what might otherwise be a legit pathname is becoming too long.


cheers, 
  DaveK
-- 
Can't think of a witty .sigline today
 


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



RE: Can't delete file

2004-01-19 Thread Aurangzeb M. Agha
Dave --

That worked!  Thank goodness, I thought I'd have to live with an unwanted
folder forever.

I'm curious--was what you suggested possible just because I was lucky?
What if the names of the files had been even longer; would your suggestion
not have worked?!

Thanks so much.

Sincerely,

Zeb


 Date: Mon, 19 Jan 2004 15:51:32 -
 From: Dave Korn [EMAIL PROTECTED]
 To: 'Cygwin Mail List' [EMAIL PROTECTED]
 Subject: RE: Can't delete file



  -Original Message-
  From: cygwin-owner On Behalf Of Aurangzeb M. Agha

  Thanks for the suggestion Kleven, but neither did the suggestion below
  work:
 
  C:\TEMP\downloads\nutch-2003-11-17\www.greece101.comdir /x

   Here, maybe this will work: try shortening the overlong path by doing
 something like this:

 ---snip---
 C:
 cd \temp\downloads
 ren nutch-2003-11-17 x
 move x \
 cd \x
 ren www.greece101.com y
 cd \x\y
 del wctpro~1.act
 ---snip---

 so that the file ends up being called C:\x\y\wctPropInfo(...snip!); with
a
 bit of luck, reducing the
 C:\TEMP\downloads\nutch-2003-11-17\www.greece101.com path part of the
 filename to C:\x\y might make the overall filename enough shorter to
fit
 within the maximum path length.  It does seem as if, because Bash feels
the
 need to escape all the embedded equals, ampersand, and at signs:

 $ rm
 [EMAIL PROTECTED]slid\=40\product\=Hotel\type\=PropertyInf
 ormat
 ion\lang\=ENG\af
 filiateId\=10006093\hotelId\=10214537\include\=OVERVIEW\did\=14\num
 berAd
 ults\=1\numberRooms\=1
 \dateSelected\=false\needDates\=Y\debugXML\=false
 rm: cannot remove
 [EMAIL PROTECTED]slid=40product=Hoteltype=PropertyInformatio
 nlan
 g=ENG
 affiliateId=10006093hotelId=10214537include=OVERVIEWdid=14numberAdu
 lts=1
 numberRooms=1dateSelec
 ted=falseneedDates=YdebugXML=false': File or path name too long

 that what might otherwise be a legit pathname is becoming too long.


 cheers,
   DaveK

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Can't delete file

2004-01-18 Thread Aurangzeb M. Agha
While running wget on a site I run, I ended up downloading the following
file:

[EMAIL 
PROTECTED]slid=40product=Hoteltype=PropertyInformationlang=ENGaffiliateId=10006093hotelId=10214537include=OVERVIEWdid=14numberAdults=1numberRooms=1dateSelected=falseneedDates=YdebugXML=false

Problem is that now I can't get rid of it.  I'm guessing this is due to
the M$ char limit.  I've tried everything from:

ls *wctProp* | xargs rm -f

to 'rm -f *', but no luck.  Every time, I get the same thing:

$ rm [EMAIL 
PROTECTED]slid\=40\product\=Hotel\type\=PropertyInformation\lang\=ENG\af
filiateId\=10006093\hotelId\=10214537\include\=OVERVIEW\did\=14\numberAdults\=1\numberRooms\=1
\dateSelected\=false\needDates\=Y\debugXML\=false
rm: cannot remove
[EMAIL PROTECTED]slid=40product=Hoteltype=PropertyInformationlang=ENG
affiliateId=10006093hotelId=10214537include=OVERVIEWdid=14numberAdults=1numberRooms=1dateSelec
ted=falseneedDates=YdebugXML=false': File or path name too long

Anyone have any idea what I can do?  I've tried to remove from a Dos
window, Windows Explorer, but no luck.


Thanks,

Zeb

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



RE: Can't delete file

2004-01-18 Thread Seth Rubin

All DOS files are also stored in 8.3 name format.  Your file is probably
stored as WCTPRO~1.ACT
To see the 8.3 name belonging to a file, do DIR /X from a DOS window.  You
can fully use this name to access the file in question.  E.g.

DEL WCTPRO~1.ACT

-- Seth

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf
Of Aurangzeb M. Agha
Sent: Sunday, January 18, 2004 9:52 PM
To: Cygwin Mail List
Subject: Can't delete file


While running wget on a site I run, I ended up downloading the following
file:

[EMAIL PROTECTED]slid=40product=Hoteltype=PropertyInformationlang
=ENGaffiliateId=10006093hotelId=10214537include=OVERVIEWdid=14numberAdu
lts=1numberRooms=1dateSelected=falseneedDates=YdebugXML=false

Problem is that now I can't get rid of it.  I'm guessing this is due to
the M$ char limit.  I've tried everything from:

ls *wctProp* | xargs rm -f

to 'rm -f *', but no luck.  Every time, I get the same thing:

$ rm
[EMAIL PROTECTED]slid\=40\product\=Hotel\type\=PropertyInformat
ion\lang\=ENG\af
filiateId\=10006093\hotelId\=10214537\include\=OVERVIEW\did\=14\numberAd
ults\=1\numberRooms\=1
\dateSelected\=false\needDates\=Y\debugXML\=false
rm: cannot remove
[EMAIL PROTECTED]slid=40product=Hoteltype=PropertyInformationlan
g=ENG
affiliateId=10006093hotelId=10214537include=OVERVIEWdid=14numberAdults=1
numberRooms=1dateSelec
ted=falseneedDates=YdebugXML=false': File or path name too long

Anyone have any idea what I can do?  I've tried to remove from a Dos
window, Windows Explorer, but no luck.


Thanks,

Zeb

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/