Trouble with moving files and <curfolder>
Posted: 30 May 2018 02:06
Hello, I am a beginner to Xyplorer scripting, but I am having trouble with a script, not sure what I'm doing wrong.
It's meant to move the selected file(s) into an archival folder, with the subfolder being the current folder's name.
eg. if I'm in D:\Downloads\Photos, it should move the file(s) into Z:\Archive\Photos. I am trying to achieve this with the following code:
However, when I try to do this, it's sending the file to Z:\Archive\D\Downloads\Photos instead. In the PDF Help, it says that the behaviour of <curpath> should be:
I am on XYplorer 19.0, if that makes any difference.
Thank you for any help or advice.
It's meant to move the selected file(s) into an archival folder, with the subfolder being the current folder's name.
eg. if I'm in D:\Downloads\Photos, it should move the file(s) into Z:\Archive\Photos. I am trying to achieve this with the following code:
Code: Select all
moveto "Z:\Archive\<curfolder>", , -1;Code: Select all
<curfolder> name of the current folder (without path)Thank you for any help or advice.