[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

FTP Tagged

Posted on 2004-04-02
10
Medium Priority
?
352 Views
Last Modified: 2013-12-04
How can I delete the folders created with special characters, blanks,...
0
Comment
Question by:ractac01
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
10 Comments
 
LVL 12

Expert Comment

by:trywaredk
ID: 10744187
http://support.microsoft.com/default.aspx?scid=kb;en-us;320081

Cause 5: The File Name Includes an Invalid Name in the Win32 Name Space
You may not be able to delete a file if the file name includes an invalid name (for example, the file name has a trailing space or a trailing period or the file name consists of a space only). To resolve this issue, use a tool that uses the appropriate internal syntax to delete the file. You can use the "\\?\" syntax with some tools to operate on these files, for example:
del "\\?\c:\path_to_file_that contains a trailing space.txt "

The cause of this issue is similar to Cause 4. However, if you use typical Win32 syntax to open a file that has trailing spaces or trailing periods in its name, the trailing spaces or periods are stripped before the actual file is opened. Therefore, if you have two files in the same folder named "AFile.txt" and "AFile.txt " (note the space after the file name), if you try to open the second file by using standard Win32 calls, you open the first file instead. Similarly, if you have a file whose name is just " " (a space character) and you try to open it by using standard Win32 calls, you open the file's parent folder instead. In this situation, if you try to change security settings on these files, you either may not be able to do so or you may unexpectedly change the settings on different files. If this behavior occurs, you may think that you have permission to a file that actually has a restrictive ACL.

Many Regards
Jorgen Malmgren
IT-Supervisor
Denmark

:o) Your brain is like a parachute. It works best when it's open
0
 
LVL 12

Expert Comment

by:trywaredk
ID: 10744203
HOW TO: Take Ownership of files in NTFS (windows xp)
http://support.microsoft.com/default.aspx?scid=kb;en-us;Q308421&sd=tech

HOW TO: Use the File Ownership Script Tool (Fileowners.pl) in Windows 2000
http://support.microsoft.com/default.aspx?scid=kb;en-us;320046
0
 
LVL 24

Expert Comment

by:SunBow
ID: 10744286
Most delete processes won't work, if you have to ask (means you've found many don't work)

Easiest is rebuild the whole box, learn lesson and secure ftp before thinking of opening it up
0
Are You Ready for GDPR?

With the GDPR deadline set for May 25, 2018, many organizations are ill-prepared due to uncertainty about the criteria for compliance. According to a recent WatchGuard survey, a staggering 37% of respondents don't even know if their organization needs to comply with GDPR. Do you?

 
LVL 7

Expert Comment

by:Chatable
ID: 10747047
Simply enclose the file/folder name in quotes (e.g. dir "C:\Documents and Settings") this will work for any other command (including del) as well.
0
 
LVL 5

Expert Comment

by:Droby10
ID: 10747973
sunbow is absolutely right...

we've dealt with this issue many times by now.  there are a number of things you can do.  but none of them are worth the effort, imo.  just rebuild the box.

if that's not an option then these links have helped a few in the past.

http://www.jtpfxp.net/dirnt.htm
http://www.jtpfxp.net/dirbreak.htm

the most important fact not mentioned in locked-directory breaking is that you will need to have exclusive access.  which typically means shutting down the ftp server.  modifying the params to run only on localhost.  start up, login, and proceed from there.  you'll probably pull your hair out trying to guess the illegal directory sequences.  so lesson learned: don't allow anonymous write access, if it wasn't anonymous then your password policy might need to be revised.

good luck
0
 

Author Comment

by:ractac01
ID: 10751045
Thanks to all for your help...I did try some of those ideas earlier. Nothing really worked due to the nature of the hidden characters. I did find this utility...worked like a charm...http://www.free-press-release.com/news/200310/1067627921.html

0
 
LVL 12

Accepted Solution

by:
trywaredk earned 1500 total points
ID: 10751261
:o) Added to my knowledgebase...

The Experts Exchange Help Pages - About Closing Questions
http://www.experts-exchange.com/Security/Win_Security/help.jsp - hi9
0
 
LVL 12

Expert Comment

by:trywaredk
ID: 11024883
:o) Glad we could help each other - thank you for the points
0
 
LVL 4

Expert Comment

by:jtwine100697
ID: 11205314
ractac01, Glad that my application (Delete FXP Files) helped you out! :)

Peace!

-=- James.
0
 

Expert Comment

by:SolarPrecision
ID: 12777630
get the program called delete fxp files
0

Featured Post

Q2 2017 - Latest Malware & Internet Attacks

WatchGuard’s Threat Lab is a group of dedicated threat researchers committed to helping you stay ahead of the bad guys by providing in-depth analysis of the top security threats to your network.  Check out our latest Quarterly Internet Security Report!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In today's information driven age, entrepreneurs have so many great tools and options at their disposal to help turn good ideas into a thriving business. With cloud-based online services, such as Amazon's Web Services (AWS) or Microsoft's Azure, bus…
In a recent article here at Experts Exchange (http://www.experts-exchange.com/articles/18880/PaperPort-14-in-Windows-10-A-First-Look.html), I discussed my nine-month sandbox testing of the Windows 10 Technical Preview, specifically with respect to r…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

656 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question