Extendscript after effects how do i run this cmd command from my script simple one line command
if i run this command on windows cmd
type "%localappdata%\temp\ClipBoard.txt" | clipit copies all content of that txt to the clipboard excellent.
now, do I execute this command in extend-script without getting any script error popups or admins rights popups?
CopyClipboardd.onClick = function(){
var cmd, isWindows;
path = Folder.temp.fsName + "/ClipBoard.bat"
cmd = 'cmd.exe /c cmd.exe /c "echo type "%localappdata%\temp\ClipBoard.txt" | clip"';
system.callSystem(cmd);
}
this is what I have cmd pops up but the code is not executing well I guess. kindly assist me asap anybody, please.
