copyto wildcards .ext
-
swan_x
- Posts: 335
- Joined: 08 Oct 2009 12:27
copyto wildcards .ext
from the help file, in "Scripting Commands" - moveto, copyto, backupto - Source:
< In the case of copyto and moveto, the source(s) may contain wildcards, for example:
copyto "D:\Backup\XY files\<date yyyy-mm-dd>", "<xydata>\*.ini|<xydata>\*.dat"
Copies all *.ini and *dat file from the XYplorer data path to D:\Backup\XY files\2008-04-22\ >
at the end of script i have this folder but is empty!! why this??
< In the case of copyto and moveto, the source(s) may contain wildcards, for example:
copyto "D:\Backup\XY files\<date yyyy-mm-dd>", "<xydata>\*.ini|<xydata>\*.dat"
Copies all *.ini and *dat file from the XYplorer data path to D:\Backup\XY files\2008-04-22\ >
at the end of script i have this folder but is empty!! why this??
-
nas8e9
- Posts: 2232
- Joined: 21 Jun 2008 14:50
Re: copyto wildcards .ext
Could you post the exact line you use?swan_x wrote:from the help file, in "Scripting Commands" - moveto, copyto, backupto - Source:
< In the case of copyto and moveto, the source(s) may contain wildcards, for example:
copyto "D:\Backup\XY files\<date yyyy-mm-dd>", "<xydata>\*.ini|<xydata>\*.dat"
Copies all *.ini and *dat file from the XYplorer data path to D:\Backup\XY files\2008-04-22\ >
at the end of script i have this folder but is empty!! why this??
-
swan_x
- Posts: 335
- Joined: 08 Oct 2009 12:27
Re: copyto wildcards .ext
copyto "D:\Backup\XY files\<date yyyy-mm-dd>", "<xydata>\*.ini|<xydata>\*.dat"
but the folder is empty!!
but the folder is empty!!
-
highend
- Posts: 14940
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: copyto wildcards .ext
Post the full script and the error message of XYplorer (if there is any)...
One of my scripts helped you out? Please donate via Paypal
-
nas8e9
- Posts: 2232
- Joined: 21 Jun 2008 14:50
Re: copyto wildcards .ext
The above line (with a ";"' at the end) works for me.swan_x wrote:copyto "D:\Backup\XY files\<date yyyy-mm-dd>", "<xydata>\*.ini|<xydata>\*.dat"
but the folder is empty!!
-
swan_x
- Posts: 335
- Joined: 08 Oct 2009 12:27
Re: copyto wildcards .ext
@ highend
again?? the script is
copyto "D:\Backup\XY files\<date yyyy-mm-dd>", "<xydata>\*.ini|<xydata>\*.dat"
(copy from help of XY, i have indicated where...)
at the end, not have error message, but the folder is empty!!! tryyyy!!
@ nas8e9
i have added ; at the end
copyto "D:\Backup\XY files\<date yyyy-mm-dd>", "<xydata>\*.ini|<xydata>\*.dat";
but the result does not change!!
again?? the script is
copyto "D:\Backup\XY files\<date yyyy-mm-dd>", "<xydata>\*.ini|<xydata>\*.dat"
(copy from help of XY, i have indicated where...)
at the end, not have error message, but the folder is empty!!! tryyyy!!
@ nas8e9
i have added ; at the end
copyto "D:\Backup\XY files\<date yyyy-mm-dd>", "<xydata>\*.ini|<xydata>\*.dat";
but the result does not change!!
-
TheQwerty
- Posts: 4373
- Joined: 03 Aug 2007 22:30
Re: copyto wildcards .ext
It might help if you enabled stepping (Scripting menu -> Step Mode) and then executed the script.
When the stepping dialog is shown right click in either the top or bottom section and select "Copy Command (Parsed and Resolved)" and then paste the results here.
Also how are you trying to execute this script?
When the stepping dialog is shown right click in either the top or bottom section and select "Copy Command (Parsed and Resolved)" and then paste the results here.
Also how are you trying to execute this script?
-
highend
- Posts: 14940
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: copyto wildcards .ext
This is no script, this is a single command (and even this one wasn't complete).
If the usage of wildcards is buggy, write a bugreport and use a simple script instead?
If the usage of wildcards is buggy, write a bugreport and use a simple script instead?
Code: Select all
//...
$destfolder = "D:\Backup\XY files\<date yyyy-mm-dd>";
$datfiles = listfolder(<xydata>, "*.dat", 1, "|");
$inifiles = listfolder(<xydata>, "*.ini", 1, "|");
copyto "$destfolder", "$datfiles";
copyto "$destfolder", "$inifiles";One of my scripts helped you out? Please donate via Paypal
-
swan_x
- Posts: 335
- Joined: 08 Oct 2009 12:27
Re: copyto wildcards .ext
@ TheQwerty
there is no error message!! simply at the end, the folder is empty! try it!
from XY - scripting - run script
copyto "D:\Backup\XY files\<date yyyy-mm-dd>", "<xydata>\*.ini|<xydata>\*.dat"
@ highend
this is not a script??
copyto "D:\Backup\XY files\<date yyyy-mm-dd>", "<xydata>\*.ini|<xydata>\*.dat"
is shown exactly as written in the help file...
this work, creates the folder, but this is EMPTY!! no file .ini, .dat inside!
and this behavior is for any type of file (ex....copyto "D:\Backup\", "C:\*.txt";)
there is no error message!! simply at the end, the folder is empty! try it!
from XY - scripting - run script
copyto "D:\Backup\XY files\<date yyyy-mm-dd>", "<xydata>\*.ini|<xydata>\*.dat"
@ highend
this is not a script??
copyto "D:\Backup\XY files\<date yyyy-mm-dd>", "<xydata>\*.ini|<xydata>\*.dat"
is shown exactly as written in the help file...
this work, creates the folder, but this is EMPTY!! no file .ini, .dat inside!
and this behavior is for any type of file (ex....copyto "D:\Backup\", "C:\*.txt";)
-
zer0
- Posts: 2676
- Joined: 19 Jan 2009 20:11
Re: copyto wildcards .ext
Please use code tags around your scripts, they are supposed to be formatted that way.
Reporting a bug? Have a wish? Got a question? Use search - View roadmap - FAQs: Forum + XY site
Windows 7/10
Always using the latest stable two-decimal build
Windows 7/10
Always using the latest stable two-decimal build
-
TheQwerty
- Posts: 4373
- Joined: 03 Aug 2007 22:30
Re: copyto wildcards .ext
I didn't ask if there was an error, I asked that you enable stepping and copy the resolved and parsed command so that we can verify how XY is interpreting the script.swan_x wrote:@ TheQwerty
there is no error message!! simply at the end, the folder is empty! try it!
from XY - scripting - run script
copyto "D:\Backup\XY files\<date yyyy-mm-dd>", "<xydata>\*.ini|<xydata>\*.dat"
I asked where you're running the script from because I have tried this script and it works correctly from the address bar.
I'll also add a request that you go to Help->Various Information, copy the contents of the resulting dialog, and paste it into this thread, since knowing XY/OS versions and the relevant paths might help.
-
swan_x
- Posts: 335
- Joined: 08 Oct 2009 12:27
Re: copyto wildcards .ext
from the address bar??
i try from scripting - run script....
ok try in step mode...this is a report "resolved and parsed command"
copyto
----
D:\Backup\XY files\2011-08-18
----
D:\apps\XY\Data\*.ini|D:\apps\XY\Data\*.dat
after i have one message, the folder not exist, do you want to create? yes.
now have the folder, but is empty! no file inside!
and this for any type of file!
i try from scripting - run script....
ok try in step mode...this is a report "resolved and parsed command"
copyto
----
D:\Backup\XY files\2011-08-18
----
D:\apps\XY\Data\*.ini|D:\apps\XY\Data\*.dat
after i have one message, the folder not exist, do you want to create? yes.
now have the folder, but is empty! no file inside!
and this for any type of file!
-
TheQwerty
- Posts: 4373
- Joined: 03 Aug 2007 22:30
Re: copyto wildcards .ext
Okay, nothing out of the ordinary there - aside from the lack of copying.
How about the information from Help -> Various Information?
How about the information from Help -> Various Information?
-
swan_x
- Posts: 335
- Joined: 08 Oct 2009 12:27
Re: copyto wildcards .ext
another ex...
i have 555.txt in C:\
script
copyto "D:\Backup\XY files\<date yyyy-mm-dd>", "C:\*.txt";
same error..."create folder?" yes, new folder in D:\Backup\XY files\ but inside nothing!! no file .txt!!
i have 555.txt in C:\
script
copyto "D:\Backup\XY files\<date yyyy-mm-dd>", "C:\*.txt";
same error..."create folder?" yes, new folder in D:\Backup\XY files\ but inside nothing!! no file .txt!!
-
zer0
- Posts: 2676
- Joined: 19 Jan 2009 20:11
Re: copyto wildcards .ext
Wildcards are not currently supported for SC copyto when customcopy is enabled as per this thread: http://xyplorer.com/xyfc/viewtopic.php?f=2&t=6828
Last edited by zer0 on 18 Aug 2011 12:50, edited 1 time in total.
Reporting a bug? Have a wish? Got a question? Use search - View roadmap - FAQs: Forum + XY site
Windows 7/10
Always using the latest stable two-decimal build
Windows 7/10
Always using the latest stable two-decimal build
XYplorer Beta Club