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

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSD28V","label":"WebSphere Application Server Liberty Core"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"855","Line of Business":{"code":"LOB45","label":"Automation"}}]

Hi all,
i have a big problem: when i try to install redmine 0.8.4 on my server i retrieve this error:

rake db:migrate RAILS_ENV="production" 
The filename, directory name, or volume label syntax is incorrect

i'm running the free RC build 7100 of windows server 2008 with the latest updates.

Rails version: 2.1.2
Gems version: 1.3.1
Ruby version: ruby 1.8.6 (2008-08-11 patchlevel 287) [i386-mswin32]

I tried changing up the localFilePath in different ways also googled but nothing seemed to resolve the issue.


The issue here is with your string containing the path to the file:

"C:\\Users\\LK\\source\repos\dsd-ica-perf\\src\\et.ure.ica.Perf\\PerfTest.cs";

Notice that you've escaped some backslashes, but not others. You need to escape all backslashes otherwise C# will convert those into characters (ie. \r gets converted into a carriage-return):

Add your solution here

 B   I   U   S  small BIG code var  <   >   &  link [^] encode untab case indent outdent

Preview 0

Existing Members

...or Join us

Download, Vote, Comment, Publish.

Your Email  

This email is in use. Do you need your password?

Optional Password  

When answering a question please:

  1. Read the question carefully.
  2. Understand that English isn't everyone's first language so be lenient of bad spelling and grammar.
  3. If a question is poorly phrased then either ask for clarification, ignore it, or edit the question and fix the problem. Insults are not welcome.
  4. Don't tell someone to read the manual. Chances are they have and don't get it. Provide an answer or move on to the next question.
Let's work to help developers, not make them feel stupid.


This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

What does it mean the filename directory name or volume label syntax is incorrect?

Renaming files to include invalid characters will result in the error "The filename, directory name, or volume label syntax is incorrect." 1) Create a file that has an invalid symbol in the file name (ex. <, >, /, \, :, or |). 2) Attempt to transfer the file in either MOVEit Transfer or MOVEit Automation.