All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.spun.util.tests.WindowsOpener Maven / Gradle / Ivy

The newest version!
package com.spun.util.tests;

import com.spun.util.SystemUtils;

public class WindowsOpener implements Opener
{
  @Override
  public boolean open(String fileName)
  {
    if (!SystemUtils.isWindowsEnvironment())
    { return false; }
    String cmd = String.format("cmd /C start \"Needed Title\" \"%s\" /B", fileName);
    Opener.execute(cmd);
    return true;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy