AlanH wrote:The only thing I can see is the working one seams to remove all spaces from the file path but in the non working one the spaces are there. As far as I can see the file path is the correct path in the non working one.
Your working example is using the so called "
ShortPath", using a max
8 characters long abbreviation for every part of the full file path.
The problem is: there is absolutely no difference in the procedure if you use C: or D: or L: or any other drive letter.
As you see correctly in the second example, your D-path-parts are no more max 8 characters long without spaces.
What you could try is this modified content of AcoustidFingerprint.vbs:
Code: Select all
Set oArguments = WScript.Arguments
Set MyFSO = CreateObject("Scripting.FileSystemObject")
CreateObject("WScript.Shell").Run oArguments(0) &" "& MyFSO.GetFile(oArguments(2)).ShortPath &" > "& oArguments(1), 0, True
The oArguments(2) will be forced to be executed as short path.
[quote="AlanH"]The only thing I can see is the working one seams to remove all spaces from the file path but in the non working one the spaces are there. As far as I can see the file path is the correct path in the non working one.[/quote]Your working example is using the so called "[url=https://msdn.microsoft.com/de-de/library/tes8ehwe(v=vs.84).aspx]ShortPath[/url]", using a max [url=https://en.wikipedia.org/wiki/8.3_filename]8 characters long abbreviation[/url] for every part of the full file path.
The problem is: there is absolutely no difference in the procedure if you use C: or D: or L: or any other drive letter.
As you see correctly in the second example, your D-path-parts are no more max 8 characters long without spaces.
What you could try is this modified content of AcoustidFingerprint.vbs:[code]Set oArguments = WScript.Arguments
Set MyFSO = CreateObject("Scripting.FileSystemObject")
CreateObject("WScript.Shell").Run oArguments(0) &" "& MyFSO.GetFile(oArguments(2)).ShortPath &" > "& oArguments(1), 0, True[/code]
The oArguments(2) will be forced to be executed as short path.