"This file does not have a program associated with it for performing this action. Please install a program or, if one is installed, create an association in the Default Programs control panel."
The file is robocopy.exe and it is attached to the script in a folder called CopyToUSB. Here is the code I have...
If,ExistDir,%ProjectTemp%\CopyToUsb,Shellexecute,Hide,cmd.exe,"/C rd /s /q #$q%ProjectTemp%\CopyToUsb#$q" If,ExistDir,%ProjectTemp%\CopyToUsb,Echo,"%ProjectTemp%\CopyToUsb Folder can not be deleted",Warn If,ExistDir,%ProjectTemp%\CopyToUsb,Message,"%ProjectTemp%\CopyToUsb Folder can not be deleted",Error If,ExistDir,%ProjectTemp%\CopyToUsb,Halt,"ProjectTemp\CopyToUsb Folder can not be deleted" DirMake,%ProjectTemp%\CopyToUsb ExtractAllFiles,%ScriptFile%,CopyToUsb,%ProjectTemp%\CopyToUsb Shellexecute,Hide,cmd.exe,"/C rd /s /q #$q%pFileBox1%\Boot#$q" Shellexecute,Hide,cmd.exe,"/C rd /s /q #$q%pFileBox1%\Programs#$q" Shellexecute,Hide,cmd.exe,"/C rd /s /q #$q%pFileBox1%\sources#$q" FileDelete,%pFileBox1%\BOOTMGR FileDelete,%pFileBox1%\CdUsb.Y FileDelete,%pFileBox1%\grldr FileDelete,%pFileBox1%\menu.lst FileDelete,%pFileBox1%\Win7PE.cd ShellExecute,%OpenHide%,%ProjectTemp%\CopyToUsb\robocopy.exe,"#$q%TargetDir%#$q #$q%pFileBox1% #$q /MIR /FFT"
I get this error on the last line of code. Can anyone tell me what I'm doing wrong?
Thanks!