the filename,directory name, or volume label syntax is incorrect
-
Monday, February 04, 2008 9:43 AM
dear frnds,
when iam editing batch or ini file by right click edit it shows the error message as
"the filename,directory name, or volume label syntax is incorrect"
pls provide any solution to solve this issue
regards,
ram.n
All Replies
-
Tuesday, February 05, 2008 12:22 AMOwner
Hello Ram.N
This is from TechNet:
Explanation:
The system does not accept the keyboard combination Alt+0 through Alt+32 or the following characters: \\ \\ / [ ] : | < > + ; = . ? "
User Action:
Correct the file name or volume label and try the command again.
There is also a thread in the Visual C# IDE forum that talks about how these same characters appearing in parent file directories may cause a similar error.
I hope that this helps.
Eliot - MSFT
-
Wednesday, April 02, 2008 1:56 PM
nram wrote: dear frnds,
when iam editing batch or ini file by right click edit it shows the error message as
"the filename,directory name, or volume label syntax is incorrect"
pls provide any solution to solve this issue
regards,
ram.n
-
Saturday, July 12, 2008 5:34 PM
In my case, I had a trojan that changed different settings on my computer, including registry keys. After removing the trojan I ran a program called SDFix to reset the settings that the trojan had changed. The program ran very well, but have a bug. When it reset the registry key used to edit batch files (*.bat) it set it as follow:
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\batfile\shell\edit\command] = %SystemRoot%\System32\NOTEPAD.EXE %1"
As you already probably notice there is lonley quote at the end of the value. Just delete that quote and you are done.
As always, you edit the registry at your own risk.
Regards,
Picus
-
Wednesday, July 23, 2008 6:03 AM
Dear Picus,
I just read your message and modified the registory setting as per your suggestion and it worked the very next moment

Thank you so much for your solution; from couple of months, I have been struggling to find the solution for this issue.
Thnx again for your solution

Warm Regards,
Viral Rathod
-
Friday, September 05, 2008 1:09 AMthanks a lot man, your answer was very useful, it worked ok in my pc.
-
Monday, September 08, 2008 4:39 AM
Dear Frnds,
thnx, i done the registry setting, now is working fine for editing batch file. but still iam having the same issue in editing *.ini file. if any same fix for this pls provide the registry setting
Thanks,
Ram.N
-
Wednesday, September 17, 2008 11:49 AM
You'll find the following key having the same issue:
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\inifile\shell\open\command] = %SystemRoot%\System32\NOTEPAD.EXE %1"
Again, remove the lonely quote
-
Monday, September 29, 2008 2:58 PM
The hotfix mentioned in this KB article fixed these problems in my case. http://support.microsoft.com/kb/943337
-
Wednesday, December 17, 2008 5:41 PM
Remove the " at the end of the path
It should read: %SystemRoot%\System32\NOTEPAD.EXE %1 -
Thursday, December 25, 2008 4:14 AMawesome
i tried another solution i read that had me deleting the %1 - it didn't work
yours was great
thank you
now if I could only figure out how the problem occurred
-
Tuesday, October 20, 2009 1:56 PMThanks, It works.
-
Tuesday, May 25, 2010 4:40 AMThanks Picus!
-
Tuesday, September 21, 2010 5:15 AM
dear picus,
in my case, i have saved my documents and files on my USB drive because i need to reformat my pc..after saving it, i did formatting my pc..but when i open my files on my USB, there are unreadable characters (ex. 0s g┴.
£,) and when i open it, it says "the file name, directory name, or volume label syntax is incorrect"i hope you have a solution regarding this matter.
brgds,
chaser21


