Skip to main content
Participant
June 12, 2022
Question

Move a folder (and subfolders + Files) to another folder

  • June 12, 2022
  • 1 reply
  • 205 views

Hi,

 

I've search all over and tried many different scripts, I can't get this to work.

 

I need to move a folder (plus all subsolders and files) from one folder to another on the same USB Stick, OS Windows

 

Source = 'D:\\Etsy\\Photoshop Action Output'

Destination = 'D:\\Etsy\\ReadyToRelease\\Photoshop Action Output'

 

(After which I have a working script to rename the folder) This enables me to complete a piece of work, move it, rince and repeat. 

 

Thank you

 

 

 

 

This topic has been closed for replies.

1 reply

Legend
June 13, 2022

In your specific case, try this option.

var src="D:\\Etsy\\Photoshop Action Output";
var dst = "D:\\Etsy\\ReadyToRelease";

var f = new Folder(dst);

if (!f.exists) f.create();

var cmd = "move " + "\""+src+"\""+ " " + "\""+dst+"\""; 

//alert(cmd)

system(cmd);