Can the script copy or move files to the specified folder

Discuss and share scripts and script files...
Post Reply
Kenbol
Posts: 16
Joined: 23 Sep 2021 04:44

Can the script copy or move files to the specified folder

Post by Kenbol »

Can the script copy or move files to the specified folder,include newly created path,just like CMD in Windows

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: Can the script copy or move files to the specified folder

Post by highend »

???
One of my scripts helped you out? Please donate via Paypal

Kenbol
Posts: 16
Joined: 23 Sep 2021 04:44

Re: Can the script copy or move files to the specified folder

Post by Kenbol »

Isn't it this type?ok

Horst
Posts: 1085
Joined: 24 Jan 2021 12:27
Location: Germany

Re: Can the script copy or move files to the specified folder

Post by Horst »

Sorry, but no one can understand what you are talking about.
Which script ?
What function of cmd ?
Try to explain with examples
Windows 11 Home x64 Version 23H2 (OS Build 22631.3374)
Portable XYplorer (actual version, including betas)
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69

Kenbol
Posts: 16
Joined: 23 Sep 2021 04:44

Re: Can the script copy or move files to the specified folder

Post by Kenbol »

xcopy /y "D:\Dt\modular.ps" "F:\Data\Ten\sample\210825\"
Copy the file modular.ps to path "F:\Data\Ten\sample\210825\"
Disk F does not have this path "F:\Data\Ten\sample\210825\",create this path,and then copy or move the files

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: Can the script copy or move files to the specified folder

Post by highend »

Both script commands copyto and moveto have the flags=2 parameter to automatically create non-existent paths...
One of my scripts helped you out? Please donate via Paypal

Kenbol
Posts: 16
Joined: 23 Sep 2021 04:44

Re: Can the script copy or move files to the specified folder

Post by Kenbol »

I checked the documentation and didn't see how to run multiple script commands
Attachments
xy.jpg
xy.jpg (135.66 KiB) Viewed 2004 times

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: Can the script copy or move files to the specified folder

Post by highend »

rtfm "idh_scripting.htm#idh_scripting_multi";
One of my scripts helped you out? Please donate via Paypal

Kenbol
Posts: 16
Joined: 23 Sep 2021 04:44

Re: Can the script copy or move files to the specified folder

Post by Kenbol »

Thx for reply
The multiline script command did not run successfully...
Attachments
xy3.jpg
xy3.jpg (113.27 KiB) Viewed 1984 times
xy2.jpg
xy2.jpg (122.65 KiB) Viewed 1984 times

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: Can the script copy or move files to the specified folder

Post by highend »

The very first paragraph...
In a multi-line script all lines apart from the first line have to be indented by at least one space.
One of my scripts helped you out? Please donate via Paypal

1024mb
Posts: 205
Joined: 14 Dec 2018 23:26

Re: Can the script copy or move files to the specified folder

Post by 1024mb »

The patience of a saint

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

Re: Can the script copy or move files to the specified folder

Post by admin »


Post Reply