Environment variable support
Hey there. I'm wondering if there's support (albeit undocumented) for environment variables (like %WINDIR%, for example). From previous forum threads it appears support wasn't there previously but I'm really hoping things have changed.
Specifically, here's what I'm trying to accomplish:
var info:NativeProcessStartupInfo = new NativeProcessStartupInfo();
info.executable = File.applicationDirectory.resolvePath(whereisPath);
info.workingDirectory = File.applicationDirectory;
var args:Vector.<String> = new Vector.<String>();
args.push('-r');
args.push('%WINDIR%\\SysWOW64;%WINDIR%\\System32'); // searches in the Windows system paths
args.push('-s'); // succinct output. Prints path only
args.push(exeToFind);
info.arguments = args;
nativeProcess = new NativeProcess();
addListeners();
nativeProcess.start(info);
When I run the executable with the same arguments in CMD, %WINDIR% is correctly interpreted. However, when run from AIR, it appears that %WINDIR% is never translated.
Thanks for any info...even if it turns out it's just not supported.
Aaron
