More and more working with the UVK tool. Just realy a great tool!
I tried to figure out how to copy a folder within several subfolders and files from my usb stick to my C: partition.
For example i tried:
<ReplaceFile>
%InstallSourceDir%\Sys_recovery\*.* | c:\sys_recovery\
and i tried
<cmd script>
xcopy %InstallSourceDir%\Sys_recovery\ c:\sys_recovery\ /s/e/i/f/h/y
This doesn't do the trick.
Is there a way to copy folders?
Copy folders
Forum rules
We have no special rules for UVK forums. Just try to be polite and clear in your posts.
Please don't post spam in this forum. Spammers will be banned by IP, e-mail and username.
We reserve the right to delete all posts and ban all users we consider not having respected these rules without warning.
We have no special rules for UVK forums. Just try to be polite and clear in your posts.
Please don't post spam in this forum. Spammers will be banned by IP, e-mail and username.
We reserve the right to delete all posts and ban all users we consider not having respected these rules without warning.
Re: Copy folders
Hi pcrolin.
You have many ways to copy directories. One of them is by using the xcopy command, like you did, except there are some syntax errors.
Note: <CmdScript> has no whitespace, Both source and destination paths are enclosed in double quotes (good practice), and there is a white space between the last switches (/s /y /e /q /h /i).
You have a better way to copy directories: Using <AutoItScript> instead:
I like this one better, but you can use the one you want. For both scripts, the exit code being 0 means success. Any other value means an error occurred.
You have many ways to copy directories. One of them is by using the xcopy command, like you did, except there are some syntax errors.
Code: Select all
<CmdScript>
xcopy "%InstallSourceDir%\Sys_recovery" "C:\sys_recovery" /s /y /e /q /h /i
You have a better way to copy directories: Using <AutoItScript> instead:
Code: Select all
<AutoItScript>
$sourcedir = EnvGet('InstallSourceDir')&'\Sys_recovery'
DirCopy($sourcedir,'C:\sys_recovery',1)
Exit @error
One thing we humans have in common is that we are all different. So, if you think you're weird because you're different from everyone else, then we are all weird.
Fred
Fred
Re: Copy folders
Hi Fred ,
you're my hero!
I have just modified and tested with xcopy . It works perfectly . Many thanks for your quick response .
I still can not work with < AutoItScript > because I know from too little . What language is that ? I want to learn myself more about it .
Cheers Roel
you're my hero!
I have just modified and tested with xcopy . It works perfectly . Many thanks for your quick response .
I still can not work with < AutoItScript > because I know from too little . What language is that ? I want to learn myself more about it .
Cheers Roel
Re: Copy folders
Hi pcrolin.
AutoIt is the language in which UVK was initially created. It is an advanced scripting language, that allows you to create real applications with windows and controls. It also allows you to access and create most COM/ActiveX objects, including WMI. It has a large comunity forum and is quite well known among the IT industry.
https://www.autoitscript.com/site/autoit/
AutoIt is the language in which UVK was initially created. It is an advanced scripting language, that allows you to create real applications with windows and controls. It also allows you to access and create most COM/ActiveX objects, including WMI. It has a large comunity forum and is quite well known among the IT industry.
https://www.autoitscript.com/site/autoit/
One thing we humans have in common is that we are all different. So, if you think you're weird because you're different from everyone else, then we are all weird.
Fred
Fred