!!Script // show perforce connection and server information. // runs p4 info // // (c) 2000 Software System Group, TU Harburg // Axel Wienberg, ax.wienberg@tu-harburg.de // // based on CSRCS binding by joe robertson, jmrobert@ro.com // var perfdir = File.getApplicationPath() + "\\Tools\\Perforce"; function DoCommand() { output = getOutput() var editor = getActiveEditor(); // common function moved to utilities var util = getScriptObject(perfdir + "\\utilities.script"); var p4exe = util.getP4ExePath(); if (p4exe == null){ output.writeLine("P4 executable not found."); } else { //set command line var commandLine = p4exe + " info"; //run it var tool = newTool(); tool.showCommandWindow = false; tool.async = true; tool.run(commandLine); } } !!/Script