【Flash Air for Desktop问题】请问如何执行指定exe程序?
这是网上找的代码,运行时错误。importflash.desktop.NativeProcess;importflash.filesystem.File;importfl...
这是网上找的代码,运行时错误。
import flash.desktop.NativeProcess;
import flash.filesystem.File;
import flash.desktop.NativeProcessStartupInfo;
var process:NativeProcess = new NativeProcess();
var file:File = new File();
NativeApplication.nativeApplication.autoExit = true;
file = file.resolvePath("C:/Windows/System32/cmd.exe");
var processArg:Vector.<String> = new Vector.<String>();
processArg[0] = "/K";
processArg[1] = "C:/Windows/System32/osk.exe";
var info:NativeProcessStartupInfo = new NativeProcessStartupInfo();
info.executable = file;
info.arguments = processArg;
process.start(info); 展开
import flash.desktop.NativeProcess;
import flash.filesystem.File;
import flash.desktop.NativeProcessStartupInfo;
var process:NativeProcess = new NativeProcess();
var file:File = new File();
NativeApplication.nativeApplication.autoExit = true;
file = file.resolvePath("C:/Windows/System32/cmd.exe");
var processArg:Vector.<String> = new Vector.<String>();
processArg[0] = "/K";
processArg[1] = "C:/Windows/System32/osk.exe";
var info:NativeProcessStartupInfo = new NativeProcessStartupInfo();
info.executable = file;
info.arguments = processArg;
process.start(info); 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询