Error Copying/Deleting File

Posted on 2005-04-25
Last Modified: 2010-05-18
When I try to copy/delete a file, the following message pops up:

Cannot copy/delete <filename>: The filename, directory name, or volume label syntax is incorrect.

The file is only a normal xml file.  I tried using software such as BCWipe to delete the file but i failed to delete it. It's very annoying. :( I would appreciate it if anyone could help me on this.
Question by:tpchan
    LVL 33

    Expert Comment

    do u've a folder that Is Named "Desktop" on the Desktop  ?;en-us;323681
    LVL 57

    Accepted Solution

    Can’t Delete a File

    You need permissions to delete a file are you a member of the Administrators group?
    (you need a minimum of {modify} to delete.
    1.      Try to take ownership of the file. Right click the file > Select the security Tab
    Select properties > Select Advanced > Select Owner
    Find the User or group you wish to give ownership to and select > Click apply
    Now try and delete the file;en-us;268019
    2      Is it telling you the filename is too long? Then Delete the file in DOS mode
    Start >Run >cmd {enter}
    Navigate to the folder the file is in, i.e. if its in c:\folder\anotherfolder\file, type "cd c:\folder\anotherfolder" {enter} The command prompt should change to let you know you are in
    the correct directory. Type "dir /x" {enter}
    The offending file will be listed like (
    Take note of the name and type "del" {enter}
    3.      Is the file flagged as ‘System’? Start > Run > type CMD >Click OK
    Navigate to the folder in which the file resides (i.e. cd c:\folder\folder\ {enter})
    Type attrib -r -s -a -h filename.extension {enter}
    Del filename.extension {enter}
    4.      Is the file in use? If either the OS or another program is using the file you cannot
    delete it You can with ZAP Included with the Microsoft SMS 2.0 Resource Guide and the
    Microsoft BackOffice Resource Kit 4.5. or you can download it here
    WARNING make sure you know what your deleting first!
    5.      If your hard drive is formatted with FAT32 you can boot with a boot disk and Delete
    the file from DOS. (del filename.extension) If your hard drive is formatted with NTFS you
    can boot with a boot disk and, if you lucky enough to have a copy of NTFSPro from you can boot to DOS mount the
    NTFS volumes and delete it from there.

    **Other Options**
    Use this on the file/folder in question

    Use GiPo@MoveOnBoot
    Instructions for use

    Try using "KillBox" on the file

    Try using TAKEOWN from the resource kit to force ownership and delete the file

    "Access Denied" When You Delete Folders from a Mounted Drive;en-us;243514

    Author Comment

    I am an administrator of the laptop

    Author Comment

    It works!
    I managed to delete it using command prompt!
    LVL 57

    Expert Comment

    by:Pete Long
    :) ThanQ - the old ways are still sometimes the best :)

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    cPanel is a Unix based web hosting control panel that provides a graphical interface and automation tools designed to simplify the process of hosting a web site. cPanel utilizes a 3 tier structure that provides functionality for administrators, rese…
    Issue: Unstable cursor in Windows XP and Windows runs extremely slow in that any click will bring up the Hour glass (sometimes for several seconds before giving you what you want) . Troubleshooting Process and the FINAL FIX: This issue see…
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

    746 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

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now