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

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

There is a newer version: 24.9.0
Show 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 - 2024 Weber Informatics LLC | Privacy Policy