How to move selected to specified folder?

I would like to move the selected files/folders to a specified folder. Here is what I have.

function OnClick(clickData)
{
	clickData.func.command.SetDest("\\COMP\_TestDirectory\Content");
	clickData.func.command.Runcommand("Copy MOVE");
}

I have done some tests. d:test works, d:\test fails.

The error I get is "the filename, directory name, or volume label syntax is incorrect. (123)

What am I doing wrong? Windows does d:\test for local and \\COMP\_TestDirectory\Content for network shares...

In JScript, backslashes (\) need to be escaped (\\).

1 Like

Thank you, that was the exact problem.