Adobe AIR to execute program

With AIR 2.0 you now can: if(NativeProcess.isSupported) { var file:File = File.desktopDirectory; file = file.resolvePath(“StyleLookupold.exe”); var nativeProcessStartupInfo:NativeProcessStartupInfo = new NativeProcessStartupInfo(); nativeProcessStartupInfo.executable = file; var process:NativeProcess = new NativeProcess(); process.start(nativeProcessStartupInfo); } You also need to add this to your descriptor file. <supportedProfiles>extendedDesktop</supportedProfiles>

Cannot run Maven using `mvn -D` argument within Microsoft Powershell, but works in Command Prompt

When you run into problems with PowerShell’s interpretation of arguments to be passed to a console EXE, try using the echoargs.exe utility that comes with the PowerShell Community Extensions. With this tool you can see how PowerShell supplies the arguments to the EXE e.g.: PS> echoargs mvn clean install -Dmaven.test.skip=true Arg 0 is <mvn> Arg … Read more

How to get Command Line info for a process in PowerShell or C#

In PowerShell you can get the command line of a process via WMI: $process = “notepad.exe” Get-WmiObject Win32_Process -Filter “name=”$process”” | Select-Object CommandLine Note that you need admin privileges to be able to access that information about processes running in the context of another user. As a normal user it’s only visible to you for … Read more

How to create a link to a directory on linux [closed]

Symbolic or soft link (files or directories, more flexible and self documenting) # Source Link ln -s /home/jake/doc/test/2000/something /home/jake/xxx Hard link (files only, less flexible and not self documenting) # Source Link ln /home/jake/doc/test/2000/something /home/jake/xxx More information: man ln /home/jake/xxx is like a new directory. To avoid “is not a directory: No such file or … Read more

tech