-3

i am trying to merge two wave file using sox.exe.

when i am specifying small path then it is working but when i am giving big path with space in it then i am getting no error but no file is getting generated. i got a tips from this url C# - Easiest way to parse filename with spaces eg. "C:\Test\File with spaces.txt"

but the above one did not work.

here i am giving few code that how my code look like

-m C:\Users\tridip.BBAKOLKATA\Documents\Visual Studio 2010\Projects\CSRAssistant\CSRAssistant\bin\Debug\VoiceRecords\in.wav 
C:\Users\tridip.BBAKOLKATA\Documents\Visual Studio 2010\Projects\CSRAssistant\CSRAssistant\bin\Debug\VoiceRecords\capture.wav 
C:\Users\tridip.BBAKOLKATA\Documents\Visual Studio 2010\Projects\CSRAssistant\CSRAssistant\bin\Debug\VoiceRecords\_20140506020037.wav

C:\Users\tridip.BBAKOLKATA\Documents\Visual Studio 2010\Projects\CSRAssistant\CSRAssistant\sox.exe and the above path as follows

Community
  • 1
  • 1
Thomas
  • 33,544
  • 126
  • 357
  • 626

2 Answers2

0

There's no code in your question But according to my experiences use this method for pathes including space:

string filename01 = "\"C:\Users\tridip.BBAKOLKATA\Documents\Visual Studio 2010\Projects\CSRAssistant\CSRAssistant\bin\Debug\VoiceRecords\capture.wav\""
Ghasem
  • 14,455
  • 21
  • 138
  • 171
0

Put all your path between ""

-m "C:\Users\tridip.BBAKOLKATA\Documents\Visual Studio 2010\Projects\CSRAssistant\CSRAssistant\bin\Debug\VoiceRecords\in.wav" 
"C:\Users\tridip.BBAKOLKATA\Documents\Visual Studio 2010\Projects\CSRAssistant\CSRAssistant\bin\Debug\VoiceRecords\capture.wav"
"C:\Users\tridip.BBAKOLKATA\Documents\Visual Studio 2010\Projects\CSRAssistant\CSRAssistant\bin\Debug\VoiceRecords\_20140506020037.wav"
Xaruth
  • 4,034
  • 3
  • 19
  • 26