[AIR] 打开我的电脑

import flash.filesystem.File;
import flash.desktop.NativeProcess;
import flash.desktop.NativeProcessStartupInfo;
var args:Vector.<String> = new Vector.<String>();
var file:File = new File("C:/Windows/explorer.exe");
args.push("/s,");
var info:NativeProcessStartupInfo = new NativeProcessStartupInfo  ;
info.executable = file;
info.arguments = args;
var nativeProcess:NativeProcess = new NativeProcess();
nativeProcess.start(info);

注意,在app-xml中需要在<application></application>标签中加入

<supportedProfiles>extendedDesktop</supportedProfiles>
原文地址:https://www.cnblogs.com/frost-yen/p/6196718.html