how can backupto create target folders?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

how can backupto create target folders?

Post by bdeshi »

I realized backupto cannot create nonexisting folders, unlike copyto/moveto. :blackstorm: :(
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

admin
Site Admin
Posts: 66300
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Script to copy specific files created in last x mins or

Post by admin »

SammaySarkar wrote:edit: I realized backupto cannot create nonexisting folders, unlike copyto/moveto. :blackstorm: :(
Sure? It does here.

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: Script to copy specific files created in last x mins or

Post by bdeshi »

admin wrote:
SammaySarkar wrote:edit: I realized backupto cannot create nonexisting folders, unlike copyto/moveto. :blackstorm: :(
Sure? It does here.
odd. ::backupto "D:\nodir\", <curitem>; spawns this dialog, in fresh too.
---------------------------
XYplorer
---------------------------
The destination you have selected does not exist:

D:\nodir\

Do you want to create it now?
---------------------------
OK Cancel
---------------------------
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

admin
Site Admin
Posts: 66300
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Script to copy specific files created in last x mins or

Post by admin »

Er, yes. That's what I meant. You click OK and the thing is created. The same with copyto/moveto.

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: Script to copy specific files created in last x mins or

Post by bdeshi »

nope. copyto/moveto can SkipPromptToCreate. ::copytoto "D:\nodirtoo\", <curitem>,, 2;
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: how can backupto create target folers?

Post by bdeshi »

Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

admin
Site Admin
Posts: 66300
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Script to copy specific files created in last x mins or

Post by admin »

SammaySarkar wrote:nope. copyto/moveto can SkipPromptToCreate. ::copytoto "D:\nodirtoo\", <curitem>,, 2;
Ah this one. Yes, SkipPromptToCreate is not supported in backupto. Maybe later.

Post Reply