Ошибка the filename directory name

Windows Server 2012 Datacenter Windows Server 2012 Datacenter Windows Server 2012 Essentials Windows Server 2012 Foundation Windows Server 2012 Foundation Windows Server 2012 Standard Windows Server 2012 Standard More…Less

Symptoms

Consider the following scenario:

  • You have a computer that is running Windows Server 2012.

  • You use the Windows Server Backup utility to back up files to an external drive.

  • You remove the external drive after the backup is complete.

  • You try to attach a second drive in the backup schedule. For example, you attach another external drive, and then you run the following command:

    WBADMIN ENABLE BACKUP -addtarget: {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx} 

In this scenario, you receive an error message that resembles the following:

The filename, directory name, or volume label syntax is incorrect.

Note The {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx} placeholder represents the disk identifier number. You can run the wbadmin get disks command to check the disk identifier number, and the output resembles the following:

Disk name: xxxxxxxxxxx
Disk number: x
Disk identifier: {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}
Total space: xxx.xx GB
Used space: xxx.xx GB

Resolution

Hotfix information

A supported hotfix is available from Microsoft. However, this hotfix is intended to correct only the problem that described in this article. Apply this hotfix only to systems that are experiencing the problem described in this article. This hotfix might receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next software update that contains this hotfix.

If the hotfix is available for download, there is a «Hotfix Download Available» section at the top of this Knowledge Base article. If this section does not appear, contact Microsoft Customer Service and Support to obtain the hotfix.

Note If additional issues occur or if any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. For a complete list of Microsoft Customer Service and Support telephone numbers or to create a separate service request, visit the following Microsoft website:

http://support.microsoft.com/contactus/?ws=supportNote The «Hotfix Download Available» form displays the languages for which the hotfix is available. If you do not see your language, it is because a hotfix is not available for that language.

Prerequisites

To apply this hotfix, you must be running Windows Server 2012.

Registry information

To use the hotfix in this package, you do not have to make any changes to the registry.

Restart requirement

You must restart the computer after you apply this hotfix.

Hotfix replacement information

This hotfix does not replace a previously released hotfix.

The global version of this hotfix installs files that have the attributes that are listed in the following tables. The dates and the times for these files are listed in Coordinated Universal Time (UTC). The dates and the times for these files on your local computer are displayed in your local time together with your current daylight saving time (DST) bias. Additionally, the dates and the times may change when you perform certain operations on the files.

Windows Server 2012 file information notesImportant Windows 8 hotfixes and Windows Server 2012 hotfixes are included in the same packages. However, only «Windows 8» is listed on the Hotfix Request page. To request the hotfix package that applies to one or both operating systems, select the hotfix that is listed under «Windows 8» on the page. Always refer to the «Applies To» section in articles to determine the actual operating system that each hotfix applies to.

  • The files that apply to a specific product, milestone (RTM, SPn), and service branch (LDR, GDR) can be identified by examining the file version numbers as shown in the following table:

    Version

    Product

    Milestone

    Service branch

    6.2.920 0.20 xxx

    Windows Server 2012

    RTM

    LDR

  • The MANIFEST files (.manifest) and the MUM files (.mum) that are installed for each environment are listed separately in the «Additional file information for Windows Server 2012» section. MUM and MANIFEST files, and the associated security catalog (.cat) files, are extremely important to maintain the state of the updated components. The security catalog files, for which the attributes are not listed, are signed with a Microsoft digital signature.

For all supported x64-based versions of Windows Server 2012

File name

File version

File size

Date

Time

Platform

Wbengine.exe

6.2.9200.20733

1,618,944

01-Jun-2013

09:21

x64

Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the «Applies to» section.

More Information

For more information about software update terminology, click the following article number to view the article in the Microsoft Knowledge Base:

824684 Description of the standard terminology that is used to describe Microsoft software updates

Additional file information

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.

When I am running the following inside batch….

set PATH='C:UsersDEBDownloads10.1.1.0.4'
cd !PATH!

I get error «The filename, directory name, or volume label syntax is incorrect»

Update: There are the solutions that worked for me.

  • Don’t use PATH as a var name
  • set it as "myPATH=C:UsersDEB DASDownloads10.1.1.0.4"

asked Jul 16, 2014 at 14:01

Debajyoti Das's user avatar

Debajyoti DasDebajyoti Das

2,0264 gold badges34 silver badges65 bronze badges

1

set myPATH="C:UsersDEBDownloads10.1.1.0.4"
cd %myPATH%
  • The single quotes do not indicate a string, they make it starts: 'C: instead of C: so

  • %name% is the usual syntax for expanding a variable, the !name! syntax needs to be enabled using the command setlocal ENABLEDELAYEDEXPANSION first, or by running the command prompt with CMD /V:ON.

  • Don’t use PATH as your name, it is a system name that contains all the locations of executable programs. If you overwrite it, random bits of your script will stop working. If you intend to change it, you need to do set PATH=%PATH%;C:UsersDEBDownloads10.1.1.0.4 to keep the current PATH content, and add something to the end.

answered Jul 16, 2014 at 14:10

TessellatingHeckler's user avatar

2

In my case, if I use cmd to run batch file, and the batch file path is not correct show this error, for example users>E:TEST"E:TEST.bat error, users>E:TEST.bat works. after check my path it’s fixed.

answered Mar 17, 2021 at 10:31

yu yang Jian's user avatar

yu yang Jianyu yang Jian

6,5827 gold badges54 silver badges79 bronze badges

If you are facing an error message that reads ‘The Filename, Directory Name, or Volume Label Syntax is Incorrect’ on your Windows computer, it can be frustrating and confusing. This error message indicates that there is some issue with the file path or name. In this guide, we will walk you through the steps to troubleshoot and fix this error.

Possible causes of ‘The Filename, Directory Name, or Volume Label Syntax is Incorrect’ error

There are several reasons why you might be facing this error message. Some of the most common causes include:

  • Incorrect file name or path
  • Invalid characters in file name or path
  • Missing or corrupted system files
  • Disk errors
  • Malware or virus infection

Here are the steps you need to follow to fix this error:

Step 1: Check the file name and path

The first thing you need to do is check the file name and path. Make sure that the file name does not contain any invalid characters such as / : * ? » < > |. Also, ensure that the path is correct and does not contain any typos.

Step 2: Run a malware scan

Malware or virus infections can also cause this error message. Run a malware scan on your computer using a trusted antivirus software to check for any infections.

Step 3: Check for disk errors

Disk errors can also cause this error message. Run the CHKDSK utility to scan for and fix any disk errors. Here’s how to do it:

  1. Open the Command Prompt by searching for it in the Start Menu.
  2. Right-click on the Command Prompt and select ‘Run as administrator’.
  3. Type ‘chkdsk /f /r’ and press Enter.
  4. The utility will scan your disk for errors and fix them if necessary.

Step 4: Check for missing or corrupted system files

Missing or corrupted system files can also cause this error message. Run the System File Checker (SFC) utility to scan for and fix any missing or corrupted system files. Here’s how to do it:

  1. Open the Command Prompt by searching for it in the Start Menu.
  2. Right-click on the Command Prompt and select ‘Run as administrator’.
  3. Type ‘sfc /scannow’ and press Enter.
  4. The utility will scan your system for missing or corrupted files and fix them if necessary.

Step 5: Perform a System Restore

If none of the above steps have worked, you can try performing a System Restore to revert your system to an earlier state before the error occurred. Here’s how to do it:

  1. Open the Start Menu and search for ‘System Restore’.
  2. Select ‘Create a restore point’.
  3. Click on ‘System Restore’.
  4. Follow the on-screen instructions to select a restore point and perform the restore.

FAQ

Q1. What is the Filename, Directory Name, or Volume Label Syntax is Incorrect error?

A1. The Filename, Directory Name, or Volume Label Syntax is Incorrect error is a Windows error message that indicates there is some issue with the file path or name.

Q2. What causes the Filename, Directory Name, or Volume Label Syntax is Incorrect error?

A2. The error can be caused by incorrect file name or path, invalid characters in file name or path, missing or corrupted system files, disk errors, or malware or virus infection.

Q3. How do I fix the Filename, Directory Name, or Volume Label Syntax is Incorrect error?

A3. You can fix the error by checking the file name and path, running a malware scan, checking for disk errors, checking for missing or corrupted system files, or performing a system restore.

Q4. How do I run the CHKDSK utility?

A4. You can run the CHKDSK utility by opening the Command Prompt as an administrator, typing ‘chkdsk /f /r’, and pressing Enter.

Q5. How do I run the System File Checker utility?

A5. You can run the System File Checker utility by opening the Command Prompt as an administrator, typing ‘sfc /scannow’, and pressing Enter.

  • How to Fix ‘The file name is too long’ Error in Windows
  • How to Fix ‘File Too Large for Destination File System’ Error in Windows

On a windows7 machine I was trying to set the standard gateway following this example:

netsh.exe interface ipv4 set route 0.0.0.0/32 "Internet" 172.16.5.1

which returned the following error:

The filename, directory name, or volume label syntax is incorrect

Why is that the case, and how can I fix set the standard gateway for my connections?

Community's user avatar

asked Jul 22, 2014 at 12:05

Alex's user avatar

3

You need to use your real interface’s name instead of "Internet". You can list them with netsh interface show interface.

answered Jul 22, 2014 at 12:28

piernov's user avatar

piernovpiernov

2,00614 silver badges18 bronze badges

There’s some kind of an «underlying name» to the interface, set up on its 1st creation, or when it’s manually changed. You can get it using:

netsh interface ipv4 show config

It might be different from what you see in the GUI window or from running netsh interface show interface

Try using that interface name instead — this worked for me on windows 7.

answered Oct 4, 2019 at 17:50

mork's user avatar

morkmork

1312 bronze badges

I just had a similar same issue. The problem was the » character. I copied the netsh from a word document I got from our software vendor and pasted that directly into the CMD and changed the needed parts which failed with the error mentioned here. However when I copied the string at first to notepad and replaced one from the » I discovered that they are different, so I replaced both / re-typed both and the issue is solved now.

answered Aug 7, 2015 at 9:13

BastianW's user avatar

BastianWBastianW

6594 silver badges11 bronze badges

Apparently on Windows 7, you need to use a different syntax to execute the command in the correct context. Preface the context specifiers interface ipv4 with a -c parameter and quote the entire context specifier. For example, to set the adapter to DHCP:

netsh -c "interface ipv4" set address name="Local Area Connection" source=dhcp

answered Mar 13, 2015 at 16:13

Jeff's user avatar

Reading time: 4 Minutes

If a corrupt software causes problems on your Windows computer, it can be challenging to fix. For instance, if an app you installed has caused your operating system or a device driver to fail, restoring your computer to its previous state might be impossible. In this case, performing a System Restore is the only solution to revert your Windows installation to the restore point you created earlier.

Restore points are snapshots of your entire Windows computer, including system files, specific program files, registry settings, and even hardware drivers. You can set restore points at any time manually or you can configure Windows to automatically create a restore point every week. This is helpful for when there is a major system event, such as installing a new device driver, app, or downloading Windows update. It makes it easier for users to troubleshoot when errors are encountered.

But there are times when even System Restore also experiences an error. One of the common issues you might encounter is the The filename, directory name, or volume label syntax is incorrect (0x8007007B) – System Restore error. As the error name suggests, this occurs whenever the user is trying to perform a System Restore using a restore point.

What Is The filename, directory name, or volume label syntax is incorrect (0x8007007B) Error on Windows 10/11?

The error notification The filename, directory name, or volume label syntax is incorrect that comes with error code 0x8007007B is a System Restore error commonly encountered when users attempt to perform a System Restore operation on a Windows 10/11 device. This error pops up on the screen when closing the System Restore applet after manually creating a restore point.

The complete error message reads:

There was an unexpected error:
The filename, directory name, or volume label syntax is incorrect.
(0x8007007B)
Please close System Restore and try again.

Users who encounter this error are usually confused because the error message doesn’t say much about what actually happened. Double checking the filename and directory name does not help either. Although the error message says to close the applet and try again, the same error just keeps on coming back when using System Restore, resulting in more frustration for the affected users.

What Causes The filename, directory name, or volume label syntax is incorrect (0x8007007B) – System Restore Error?

This error happens because the Windows system is configured to save the restore point to an invalid path or location. It’s either the path is incorrect or is missing.

To avoid running into this error, a valid disk for creating a restore point should meet the following requirements:

  • The drive selected should have a 1GB capacity or greater.
  • If the drive has System Protection enabled, it should have at least 300MB of free storage space.
  • A restore point can take up as much as 15% of the total free space available on the disk, but old restore points might be deleted to make room for the new restore point.

The best way to resolve this error caused by an invalid path is to set the Restore Point to a valid path.

But there are times when this same error message appears when trying to run the Windows CompletePC Backup feature. This issue seems to be the result of some OEM systems having a damaged image.

This type of error occurs because of faulty imaging of the original equipment manufacturer (OEM), resulting in the presence of a damaged volume. To verify if this is the case, launch the Control Panel and open System Protection. You will see two volumes appear, one of which is selected and named Missing. Deselecting Missing and choosing usually solves the problem.

What to Do About The filename, directory name, or volume label syntax is incorrect (0x8007007B)?

If you’re not sure what steps you can take when you get this error when creating your system restore point, then the solution below should help a lot. But before you proceed, make sure you have enough storage space on that drive just to tick off your list of possible culprits. Run Outbyte PC Repair to delete junk files and claim back precious storage space on your hard drive. It would also help to delete corrupted files using the SFC checker.

Once you’ve done the basic steps, the next step is to try to deal with this error. Here’s how to go about this.

Set the Restore Point to a Valid Path.

If the path is invalid, then use a valid. It’s that simple. But how do you do this? Check out the instructions below:

  1. Press the Windows key + R to launch the Run dialog.
  2. In the Run dialog, type in sysdm.cpl.
  3. Hit Enter to open the System Properties window. Alternatively, you can access this window by going to Control Panel > System and Maintenance > System.
  4. In the System Properties window, click on the System Protection tab.
  5. Under Protection settings, uncheck all invalid or duplicate locations. To spot invalid locations, look for entries that are identical to other entries, except that they have no Windows logo.
  6. Tick off the C: drive with the Windows logo.
  7. Click Apply > OK.
  8. Click Create to check the System Restore application and find out if the error still persists.

If the problem has been resolved, other Available Drives can be selected as long as they are valid (with an icon). If you want to protect all Available Drives, it is advised that you add only one disk at a time, then test System Restore until you find out which of the listed Available Drives is not valid.

Summary

System Restore is a handy Windows utility for troubleshooting errors that are quite difficult to resolve. If you encounter the The filename, directory name, or volume label syntax is incorrect (0x8007007B) – System Restore Error when creating restore points, the above solution should give you a clear direction to take.

Give us some love and rate our post!


Vicrey Macapagal



Vicrey Makapagal

Vic is a tech enthusiast who loves to be up-to-date with the latest and greatest technology in the world. He creates content that educates and helps users with their tech-related questions. Vic manages our website to ensure that our readers have a seamless experience while browsing. He excels in troubleshooting errors and resolving Windows issues for gaming and work purposes.

Понравилась статья? Поделить с друзьями:
  • Ошибка the file or directory is corrupted and unreadable
  • Ошибка the file could not be opened
  • Ошибка the feature you are trying to use
  • Ошибка the feature is expired
  • Ошибка the failed to create virtual machine