I download a copy software name fastcopy, and it gives a command line to execute copy files.
The command :
A basic format is as follows.
fastcopy.exe [/options] file1 file2
… [/to=dest_dir]Please use space character(‘ ‘) as
separator(not semicolon). If filename
contains space character, please
enclose with dobule quotation marks.
Ex) fastopy.exe C:\Windows “C:\Program
Files” /to=”D:\Backup Folder\”Supported options are as follows.
(Please don’t put space characters
before and behind “=”)/cmd=(noexist_only|diff|update|sync|force_copy|move|delete)
… Specify operation mode. (By
default, diff mode is used. If delete
mode is specified, then “/to=” option
isn’t used.)
So, my original code to execute the fastcopy.exe was:
// fastcopy the software folder
$cmd = 'D:\\fastcopy\\fastcopy.exe d:\\files.rar /to="e:\\"';
exec( $cmd,$result)
but it seem didn’t work.
So, How to execute it??
fastcopy web page
link to direct download only 300kb
Thank you very much!!
Probably because you’re using double-backslashes when you shouldn’t be. Single quotes strings don’t need your backslashes escaping unless it’s the very last character in the string.