100+ results for 'windowscommand'

Not the results you expected?

widget_delegate.cc (https://bitbucket.org/peixuan/chromium_r197479_base.git) C++ · 186 lines

96 }

97

98 bool WidgetDelegate::ExecuteWindowsCommand(int command_id) {

99 return false;

100 }

native_window_views_win.cc (https://gitlab.com/lishaomin/electron) C++ · 145 lines

73 } // namespace

74

75 bool NativeWindowViews::ExecuteWindowsCommand(int command_id) {

76 std::string command = AppCommandToString(command_id);

77 NotifyWindowExecuteWindowsCommand(command);

LauncherUtil.java (https://github.com/jenkinsci/shiningpanda-plugin.git) Java · 101 lines

55 try {

56 // Launch the process

57 return 0 == launcher.launch().cmds(FilePathUtil.isUnix(pwd) ? args : args.toWindowsCommand())

58 .envs(environment).stdout(listener).pwd(pwd).join();

59 } catch (IOException e) {

window_delegate.h (https://github.com/draco003/chromium.git) C Header · 143 lines

84 // Execute a command in the window's controller. Returns true if the command

85 // was handled, false if it was not.

86 virtual bool ExecuteWindowsCommand(int command_id) { return false; }

87

88 // Returns the window's name identifier. Used to identify this window for

Helpers.java (https://bitbucket.org/lp/programming-multiactivities.git) Java · 94 lines

87 }

88

89 static public String escapeWindowsCommand(String command) {

90 String res = command.replaceAll("\"", "\\\"");

91 return res;

CommandLineJavaCompilerArgumentsGenerator.java (https://github.com/andrewhj-mn/gradle.git) Java · 76 lines

37 List<String> remainingArgs = new JavaCompilerArgumentsBuilder(spec).includeSourceFiles(true).build();

38 Iterable<String> allArgs = Iterables.concat(launcherOptions, remainingArgs);

39 if (exceedsWindowsCommandLineLengthLimit(allArgs)) {

40 return Iterables.concat(launcherOptions, shortenArgs(spec.getTempDir(), remainingArgs));

41 }

43 }

44

45 private boolean exceedsWindowsCommandLineLengthLimit(Iterable<String> args) {

46 int length = 0;

47 for (String arg : args) {

text.h (https://github.com/matulef/mongo.git) C Header · 162 lines

149 #if defined(_WIN32)

150

151 class WindowsCommandLine {

152 char** _argv;

153

154 public:

155 WindowsCommandLine( int argc, wchar_t* argvW[] );

156 ~WindowsCommandLine();

ntservice.h (https://gitlab.com/0072016/0072016-ApplePayDevice-) C Header · 103 lines

86 * dictates that Windows should install mongo as a service.

87 *

88 * The result is suitable for passing to mongo::constructUtf8WindowsCommandLine() to construct

89 * a properly quoted command line string.

90 */

widget_delegate.h (https://github.com/snowlesswinter/framework.git) C Header · 181 lines

95 // Execute a command in the window's controller. Returns true if the command

96 // was handled, false if it was not.

97 virtual bool ExecuteWindowsCommand(int command_id);

98

99 // Returns the window's name identifier. Used to identify this window for

windowsCommands.test.ts (https://github.com/microsoft/nni.git) TypeScript · 102 lines

8 import * as component from '../../../common/component';

9 import { cleanupUnitTest, prepareUnitTest } from '../../../common/utils';

10 import { WindowsCommands } from '../extends/windowsCommands';

11

12

13 describe('Unit Test for Windows Commands', () => {

14

15 let windowsCommands: WindowsCommands

16

17 before(() => {

26

27 beforeEach(() => {

28 windowsCommands = component.get(WindowsCommands);

29 });

30

main.cc (https://gitlab.com/generic-library/webrtc) C++ · 93 lines

41 rtc::ThreadManager::Instance()->SetCurrentThread(&w32_thread);

42

43 rtc::WindowsCommandLineArguments win_args;

44 int argc = win_args.argc();

45 char **argv = win_args.argv();

text_test.cpp (https://github.com/paralect/mongo.git) C++ · 92 lines

52 }

53

54 TEST(WindowsCommandLineConstruction, EmptyCommandLine) {

55 ASSERT_EQUALS("", constructUtf8WindowsCommandLine(svec(NULL)));

56 }

57

58 TEST(WindowsCommandLineConstruction, NothingToQuote) {

59 ASSERT_EQUALS("abc d \"\" e", constructUtf8WindowsCommandLine(svec("abc", "d", "", "e", NULL)));

60 }

61

62 TEST(WindowsCommandLineConstruction, ThingsToQuote) {

63 ASSERT_EQUALS("a\\\\\\b \"de fg\" h",

64 constructUtf8WindowsCommandLine(svec("a\\\\\\b", "de fg", "h", NULL)));

65 ASSERT_EQUALS("\"a\\\\b c\" d e",

66 constructUtf8WindowsCommandLine(svec("a\\\\b c", "d", "e", NULL)));

67 ASSERT_EQUALS("\"a \\\\\" \\", constructUtf8WindowsCommandLine(svec("a \\", "\\", NULL)));

ParseCLICommand.java (https://bitbucket.org/akshayk1987/javaexamples.git) Java · 100 lines

41 cmd = stk.nextToken();

42

43 CLICommands.WindowsCommands wcmd = CLICommands.WindowsCommands

44 .value(cmd);

45

CommandsUtils.java (https://github.com/fasol2002/jboss-plugin.git) Java · 159 lines

61

62 if(!launcher.isUnix()) {

63 args = args.toWindowsCommand();

64 }

65

127

128 if(!launcher.isUnix()) {

129 args = args.toWindowsCommand();

130 }

131

cmSeparateArgumentsCommand.cxx (https://github.com/thewtex/CMake.git) C++ · 109 lines

79 else // if(mode == ModeWindows)

80 {

81 cmSystemTools::ParseWindowsCommandLine(command.c_str(), vec);

82 }

83

ArgumentFlagsTests.cs (https://github.com/reubeno/NClap.git) C# · 144 lines

12 public class ArgumentFlagsTests

13 {

14 [ArgumentSet(Style = ArgumentSetStyle.WindowsCommandLine)]

15 public class RequiredArguments<T>

16 {

19 }

20

21 [ArgumentSet(Style = ArgumentSetStyle.WindowsCommandLine)]

22 public class AtMostOnceArguments<T>

23 {

26 }

27

28 [ArgumentSet(Style = ArgumentSetStyle.WindowsCommandLine)]

29 public class AtLeastOnceArguments<T>

30 {

PythonCommand.java (https://github.com/jenkinsci/shiningpanda-plugin.git) Java · 95 lines

91 ArgumentListBuilder args = new ArgumentListBuilder(executable, script.getRemote());

92 // Check if on UNIX to return the right command

93 return isUnix ? args : args.toWindowsCommand();

94 }

95 }

text_test.cpp (https://github.com/tadmarshall/mongo.git) C++ · 81 lines

39 }

40

41 TEST(WindowsCommandLineConstruction, EmptyCommandLine) {

42 ASSERT_EQUALS("", constructUtf8WindowsCommandLine(svec(NULL)));

43 }

44

45 TEST(WindowsCommandLineConstruction, NothingToQuote) {

46 ASSERT_EQUALS("abc d \"\" e",

47 constructUtf8WindowsCommandLine(svec("abc", "d", "", "e", NULL)));

48 }

49

50 TEST(WindowsCommandLineConstruction, ThingsToQuote) {

51 ASSERT_EQUALS("a\\\\\\b \"de fg\" h",

52 constructUtf8WindowsCommandLine(svec("a\\\\\\b", "de fg", "h", NULL)));

53 ASSERT_EQUALS("\"a\\\\b c\" d e",

54 constructUtf8WindowsCommandLine(svec("a\\\\b c", "d" , "e", NULL)));

55 ASSERT_EQUALS("\"a \\\\\" \\",

56 constructUtf8WindowsCommandLine(svec("a \\", "\\", NULL)));

Fake.DotNet.NuGet.fs (https://github.com/fsharp/FAKE.git) F# · 122 lines

13 NuGet.NuGetPushParams.Create()

14 |> NuGet.toPushCliArgs

15 |> Args.toWindowsCommandLine

16

17 Expect.isEmpty cli "Empty push args."

33 param

34 |> NuGet.toPushCliArgs

35 |> Args.toWindowsCommandLine

36

37 let expected = "-ApiKey abc123 -DisableBuffering -NoSymbols -NoServiceEndpoint -Source MyNuGetSource -SymbolApiKey MySymbolApiKey -SymbolSource MySymbolSource -Timeout 360"

Command.java (https://github.com/jenkinsci/shiningpanda-plugin.git) Java · 247 lines

243 // Create the right command depending of the OS and the conversion flag

244 return (isUnix ? new UnixCommand(command, ignoreExitCode, convert)

245 : new WindowsCommand(command, ignoreExitCode, convert));

246 }

247 }

ntservice_test.cpp (https://github.com/tadmarshall/mongo.git) C++ · 110 lines

98 // service command line.

99 ASSERT_EQUALS(expectedServiceCommandLine,

100 constructUtf8WindowsCommandLine(ntservice::constructServiceArgv(inputArgvUtf8)));

101 }

102

text.h (https://github.com/RedBeard0531/mongo.git) C Header · 118 lines

93 # endif

94

95 class WindowsCommandLine {

96 MONGO_DISALLOW_COPYING(WindowsCommandLine);

99

100 public:

101 WindowsCommandLine(int argc, wchar_t* argvW[], wchar_t* envpW[]);

102 ~WindowsCommandLine();

114 * http://msdn.microsoft.com/en-us/library/windows/desktop/17w5ykft(v=vs.85).aspx

115 */

116 std::string constructUtf8WindowsCommandLine(const std::vector<std::string>& argv);

117

118 } // namespace mongo

cmd.js (https://gitlab.com/boxnia/NFU_MOVIL) JavaScript · 120 lines

25 }

26

27 function getWindowsCommand(command) {

28 var fullCommand;

29 var extension;

63 // Windows workaround for .bat and .cmd files, see #626

64 if (isWin) {

65 command = getWindowsCommand(command);

66 }

67

text.cpp (https://github.com/matulef/mongo.git) C++ · 141 lines

106 #endif

107

108 WindowsCommandLine::WindowsCommandLine( int argc, wchar_t* argvW[] ) {

109 vector < string > utf8args;

110 vector < size_t > utf8argLength;

125 }

126

127 WindowsCommandLine::~WindowsCommandLine() {

128 free( _argv );

129 }

commands_test.go (https://gitlab.com/klauer/caddy) Go · 291 lines

71 }

72

73 func TestParseWindowsCommand(t *testing.T) {

74 tests := []struct {

75 input string

152 errorSuffix := fmt.Sprintf(" Command to parse: [%s]", test.input)

153

154 actual := parseWindowsCommand(test.input)

155 if len(actual) != len(test.expected) {

156 t.Errorf(errorPrefix+"Expected %d parts, got %d: %#v."+errorSuffix, len(test.expected), len(actual), actual)

WindowsCommand.java (https://github.com/jenkinsci/shiningpanda-plugin.git) Java · 127 lines

27 import hudson.util.ArgumentListBuilder;

28

29 public class WindowsCommand extends ShellCommand {

30

31 /**

44 * Convert shell to batch

45 */

46 protected WindowsCommand(String command, boolean ignoreExitCode, boolean convert) {

47 super(command, ignoreExitCode, convert);

48 }

task_manager_view.h (git://github.com/chromium/chromium.git) C Header · 132 lines

59 bool CanMaximize() const override;

60 bool CanMinimize() const override;

61 bool ExecuteWindowsCommand(int command_id) override;

62 base::string16 GetWindowTitle() const override;

63 gfx::ImageSkia GetWindowIcon() override;

ntservice.h (https://github.com/tadmarshall/mongo.git) C Header · 85 lines

68 * dictates that Windows should install mongo as a service.

69 *

70 * The result is suitable for passing to mongo::constructUtf8WindowsCommandLine() to construct

71 * a properly quoted command line string.

72 */

ProcessBuilder.java (https://github.com/JetBrains/intellij-community.git) Java · 126 lines

66 // - mangles the output of `cmd.exe /c echo ...`

67 //

68 // If either of these becomes an issue, please refer to [util] CommandLineUtil.addToWindowsCommandLine() for a possible implementation.

69 public Process createProcess() throws IOException {

70 if (myParameters.size() < 1) {

Launcher.java (https://bitbucket.org/ianspigeon/applauncher.git) Java · 153 lines

44

45

46 protected String executeWindowsCommand(final String[] command){

47

48 try {

plugin.go (https://github.com/instrumenta/conftest.git) Go · 207 lines

91 var err error

92 if runtime.GOOS == "windows" {

93 command, arguments, err = parseWindowsCommand(expandedCommand, args)

94 } else {

95 command, arguments, err = parseCommand(expandedCommand, args)

191 }

192

193 func parseWindowsCommand(command string, extraArgs []string) (string, []string, error) {

194 executable, arguments, err := parseCommand(command, extraArgs)

195 if err != nil {

GroupCCS.java (https://bitbucket.org/lp/programming-multiactivities.git) Java · 148 lines

75

76 String cbCommand = ((CommandBuilderProActive) commandBuilder).buildCommand(hostInfo, gcma, false);

77 //cbCommand = Helpers.escapeWindowsCommand(cbCommand);

78 cbCommand += " -c 1 ";

79

condaActivationProvider.ts (https://github.com/DonJayamanne/pythonVSCode.git) TypeScript · 150 lines

98 default:

99 if (this.platform.isWindows) {

100 return this.getWindowsCommands(condaEnv);

101 } else {

102 return this.getUnixCommands(condaEnv, await this.condaService.getCondaFile());

120 }

121

122 public async getWindowsCommands(condaEnv: string): Promise<string[] | undefined> {

123 const activate = await this.getWindowsActivateCommand();

124 return [`${activate} ${condaEnv.toCommandArgument()}`];

task_manager_view.h (https://github.com/chromium/chromium.git) C Header · 130 lines

60 // views::DialogDelegateView:

61 views::View* GetInitiallyFocusedView() override;

62 bool ExecuteWindowsCommand(int command_id) override;

63 ui::ImageModel GetWindowIcon() override;

64 std::string GetWindowName() const override;

common.py (https://github.com/giantbranch/python-hacker-code.git) Python · 110 lines

29 #pylint: disable-msg=C0111

30

31 class AbstractWindowsCommand(commands.Command):

32 @staticmethod

33 def is_valid_profile(profile):

actions.js (https://github.com/DevExpress/testcafe.git) JavaScript · 491 lines

360 }

361

362 export class GetCurrentWindowsCommand extends CommandBase {

363 constructor (obj, testRun) {

364 super(obj, testRun, TYPE.getCurrentWindows);

CommandFactory.scala (https://bitbucket.org/mehmedbasic/scalaudiobookconverter.git) Scala · 40 lines

14 def createCommand(): Command = {

15 val command: Command = OperatingSystem.locate match {

16 case Windows => createWindowsCommand()

17 case Unix => createUnixCommand()

18 }

21 }

22

23 protected def createWindowsCommand(): Command

24

25 protected def createUnixCommand(): Command

ArgumentListBuilderTest.java (https://github.com/pfeuffer/hudson.git) Java · 125 lines

107

108 @Test

109 public void testToWindowsCommand() {

110 ArgumentListBuilder builder = new ArgumentListBuilder(

111 "ant.bat", "-Dfoo1=abc", // nothing special, no quotes

121 + " \"-Dfoo8=% %\"Q\"ED% %\"c\"omspec% %-%(%.%\""

122 + " -Dfoo9=%'''%%@% && exit %%ERRORLEVEL%%\"" },

123 builder.toWindowsCommand().toCommandArray());

124 }

125 }

Fake.DotNet.Cli.fs (https://github.com/fsharp/FAKE.git) F# · 145 lines

19 DotNet.NuGetPushOptions.Create().PushParams

20 |> DotNet.buildNugetPushArgs

21 |> Args.toWindowsCommandLine

22

23 Expect.isEmpty cli "Empty push args."

39 param

40 |> DotNet.buildNugetPushArgs

41 |> Args.toWindowsCommandLine

42

43 let expected = "--disable-buffering --api-key abc123 --no-symbols --no-service-endpoint --source MyNuGetSource --symbol-api-key MySymbolApiKey --symbol-source MySymbolSource --timeout 300"

52 param

53 |> DotNet.buildPublishArgs

54 |> Args.toWindowsCommandLine

55

56 let expected = "--configuration Release --self-contained=false"

dbtests.cpp (https://github.com/tadmarshall/mongo.git) C++ · 59 lines

44 // In Windows, wmain() is an alternate entry point for main(), and receives the same parameters

45 // as main() but encoded in Windows Unicode (UTF-16); "wide" 16-bit wchar_t characters. The

46 // WindowsCommandLine object converts these wide character strings to a UTF-8 coded equivalent

47 // and makes them available through the argv() and envp() members. This enables dbtestsMain()

48 // to process UTF-8 encoded arguments and environment variables without regard to platform.

49 int wmain(int argc, wchar_t* argvW[], wchar_t* envpW[]) {

50 WindowsCommandLine wcl(argc, argvW, envpW);

51 int exitCode = dbtestsMain(argc, wcl.argv(), wcl.envp());

52 ::_exit(exitCode);

text.h (https://gitlab.com/0072016/0072016-ApplePayDevice-) C Header · 127 lines

98 #endif

99

100 class WindowsCommandLine {

101 MONGO_DISALLOW_COPYING(WindowsCommandLine);

104

105 public:

106 WindowsCommandLine(int argc, wchar_t* argvW[], wchar_t* envpW[]);

107 ~WindowsCommandLine();

123 * http://msdn.microsoft.com/en-us/library/windows/desktop/17w5ykft(v=vs.85).aspx

124 */

125 std::string constructUtf8WindowsCommandLine(const std::vector<std::string>& argv);

126

127 } // namespace mongo

JBossStopMojo.java (https://github.com/polopoly/embedded-jboss-maven-plugin.git) Java · 142 lines

56

57 final String[] params = isWindows()

58 ? createWindowsCommand(ADM_STARTUP_COMMAND, startOpts)

59 : createUnixCommand(ADM_STARTUP_COMMAND, startOpts);

60

menubarcommand.h (https://github.com/opentoonz/opentoonz.git) C Header · 280 lines

55 MenuRenderCommandType,

56 MenuViewCommandType,

57 MenuWindowsCommandType,

58 MenuHelpCommandType,

59 PlaybackCommandType,

CreateWindowsCommandTest.as (https://github.com/GunioRobot/crayon.git) ActionScript · 106 lines

15 import org.voisen.crayon.view.editor.EditorWindow;

16

17 public class CreateWindowsCommandTest

18 {

19 //--------------------------------------------------------------------------

23 //--------------------------------------------------------------------------

24

25 protected var command:CreateWindowsCommand;

26

27 //--------------------------------------------------------------------------

34 public function setUp():void

35 {

36 command = new CreateWindowsCommand();

37

38 Async.proceedOnEvent(this, prepare(MediatorMap), Event.COMPLETE);

args.cpp (https://github.com/Syniurge/Calypso.git) C++ · 126 lines

64 llvm::cl::ExpandResponseFiles(saver,

65 #ifdef _WIN32

66 llvm::cl::TokenizeWindowsCommandLine

67 #else

68 llvm::cl::TokenizeGNUCommandLine

task_manager_view.h (https://github.com/ric2b/Vivaldi-browser.git) C Header · 130 lines

60 // views::DialogDelegateView:

61 views::View* GetInitiallyFocusedView() override;

62 bool ExecuteWindowsCommand(int command_id) override;

63 gfx::ImageSkia GetWindowIcon() override;

64 std::string GetWindowName() const override;

escape_unittest.cc (https://gitlab.com/jonnialva90/iridium-browser) C++ · 60 lines

13 }

14

15 TEST(Escape, WindowsCommand) {

16 EscapeOptions opts;

17 opts.mode = ESCAPE_NINJA_COMMAND;

pypykatz_rekall.py (https://github.com/skelsec/pypykatz.git) Python · 99 lines

12

13

14 class Pypykatz(common.WindowsCommandPlugin):

15 """Extract and decrypt passwords from the LSA Security Service."""

16 """

AzureBatchRuntimeConfigurationCreator.java (https://github.com/apache/reef.git) Java · 87 lines

23 import org.apache.reef.runtime.azbatch.util.command.CommandBuilder;

24 import org.apache.reef.runtime.azbatch.util.command.LinuxCommandBuilder;

25 import org.apache.reef.runtime.azbatch.util.command.WindowsCommandBuilder;

26 import org.apache.reef.tang.formats.ConfigurationModule;

27 import org.apache.reef.tang.formats.ConfigurationModuleBuilder;

52

53 if (isWindows) {

54 builder = builder.bindImplementation(CommandBuilder.class, WindowsCommandBuilder.class);

55 } else {

56 builder = builder.bindImplementation(CommandBuilder.class, LinuxCommandBuilder.class);

ConversionCommandFactory.scala (https://bitbucket.org/mehmedbasic/scalaudiobookconverter.git) Scala · 49 lines

40 }

41

42 protected override def createWindowsCommand(): Command = {

43 new Command("\"" + new File(".").getAbsolutePath + "\\external\\faac.exe\"")

44 }

text.h (https://github.com/paralect/mongo.git) C Header · 122 lines

94 class WindowsCommandLine {

95 WindowsCommandLine(const WindowsCommandLine&) = delete;

96 WindowsCommandLine& operator=(const WindowsCommandLine&) = delete;

99

100 public:

101 WindowsCommandLine(int argc, wchar_t* argvW[], wchar_t* envpW[]);

102 ~WindowsCommandLine();

118 * http://msdn.microsoft.com/en-us/library/windows/desktop/17w5ykft(v=vs.85).aspx

119 */

120 std::string constructUtf8WindowsCommandLine(const std::vector<std::string>& argv);

121

122 } // namespace mongo

native_window_observer.h (https://gitlab.com/lishaomin/electron) C Header · 70 lines

63

64 // Called on Windows when App Commands arrive (WM_APPCOMMAND)

65 virtual void OnExecuteWindowsCommand(const std::string& command_name) {}

66 };

67

TestWindowsCommand.java (https://github.com/jenkinsci/shiningpanda-plugin.git) Java · 39 lines

24 import junit.framework.TestCase;

25

26 public class TestWindowsCommand extends TestCase {

27

28 public void testConvertCommand() throws Exception {

29 WindowsCommand command = new WindowsCommand("Hello ${Who} and $Who!\nls toto/tutu", true, true);

30 assertEquals("Hello %Who% and %Who%!\nls toto\\tutu\r\nexit %ERRORLEVEL%", command.getContents());

31 }

33 public void testDoNotConvertCommand() throws Exception {

34 String contents = "Hello ${Who} and $Who2!\nls toto/tutu";

35 WindowsCommand command = new WindowsCommand(contents, true, false);

36 assertEquals(contents + "\r\nexit %ERRORLEVEL%", command.getContents());

37 }

Execution.cs (https://github.com/mvelazc0/PurpleSharp.git) C# · 146 lines

69 }

70

71 static public void WindowsCommandShell(string log)

72 {

73 string currentPath = AppDomain.CurrentDomain.BaseDirectory;

SSH.fs (https://github.com/fsharp/FAKE.git) F# · 63 lines

40 let target = sshParams |> getTarget

41 let privateKey = sshParams.PrivateKeyPath |> getPrivateKey

42 $"%s{privateKey} %s{target} %s{Args.toWindowsCommandLine [command]}" |> String.trim

43

44 /// Performs a command via SSH.

CWindowsCommandLineHelper.cs (https://realhanhud.svn.codeplex.com/svn) C# · 107 lines

8 /// Provides shared helper functionality for working with Windows process command-lines.

9 /// </summary>

10 public static class CWindowsCommandLineHelper

11 {

12 /// <summary>

GetUIAWindowsCommand.cs (https://hg.codeplex.com/uiautomation) C# · 225 lines

19 [OutputType(new[]{ typeof(object) })]

20 // disabled in the current release

21 internal class GetUIAWindowsCommand : GetWindowCmdletBase

22 {

23 #region Constructor

24 public GetUIAWindowsCommand()

25 {

26 ProcessName = String.Empty;

childProcess.test.ts (https://github.com/aws/aws-toolkit-vscode.git) TypeScript · 434 lines

48 fs.mkdirSync(subfolder)

49

50 writeWindowsCommandFile(command)

51

52 const childProcess = new ChildProcess(command)

207 fs.mkdirSync(subfolder)

208

209 writeWindowsCommandFile(command)

210

211 const childProcess = new ChildProcess(command)

415 }

416

417 function writeWindowsCommandFile(filename: string): void {

418 fs.writeFileSync(filename, `@echo OFF${os.EOL}echo hi`)

419 }

CommandLineJavaCompilerArgumentsGenerator.java (https://github.com/xinthink/gradle.git) Java · 84 lines

45 List<String> remainingArgs = new JavaCompilerArgumentsBuilder(spec).includeSourceFiles(true).build();

46 Iterable<String> allArgs = Iterables.concat(launcherOptions, remainingArgs);

47 if (exceedsWindowsCommandLineLengthLimit(allArgs)) {

48 return Iterables.concat(launcherOptions, shortenArgs(remainingArgs));

49 }

51 }

52

53 private boolean exceedsWindowsCommandLineLengthLimit(Iterable<String> args) {

54 int length = 0;

55 for (String arg : args) {

Slicer3SlicerBaseGUITest.cxx (https://github.com/LinjieChen/Slicer3.git) C++ · 74 lines

61 int argc;

62 char **argv;

63 vtksys::SystemTools::ConvertWindowsCommandLineToUnixArguments( lpCmdLine, &argc, &argv );

64 int ret = slicer3_main ( argc, argv );

65 for (int i = 0; i < argc; i++) { delete [] argv[i]; }

OtherWindowsCommand.cs (https://github.com/ErikEJ/SqlCeToolbox.git) C# · 101 lines

10 /// Command handler

11 /// </summary>

12 internal sealed class OtherWindowsCommand

13 {

14 /// <summary>

28

29 /// <summary>

30 /// Initializes a new instance of the <see cref="OtherWindowsCommand"/> class.

31 /// Adds our command handlers for menu (commands must exist in the command table file)

32 /// </summary>

33 /// <param name="package">Owner package, not null.</param>

34 private OtherWindowsCommand(Package package)

35 {

36 if (package == null)

AnswerFileParsingTests.cs (https://github.com/reubeno/NClap.git) C# · 156 lines

16

17 [ArgumentSet(

18 Style = ArgumentSetStyle.WindowsCommandLine,

19 AnswerFileArgumentPrefix = "@")]

20 class Arguments

28

29 [ArgumentSet(

30 Style = ArgumentSetStyle.WindowsCommandLine,

31 AnswerFileArgumentPrefix = "#!")]

32 class AlternateSyntaxArguments

FileManagerLauncher.java (https://bitbucket.org/ianspigeon/applauncher.git) Java · 81 lines

27

28 path = path.replace("/", "\\"); // Convert to windows path separators

29 return executeWindowsCommand(new String[] {"C:\\Windows\\explorer.exe", path});

30

31 } else {

SlateUpdatableBuffer.cpp (https://github.com/windystrife/UnrealEngine_NVIDIAGameWorks.git) C++ · 106 lines

68

69 // Enqueue a command to unlock the draw buffer after all windows have been drawn

70 ENQUEUE_UNIQUE_RENDER_COMMAND_TWOPARAMETER( SlateBeginDrawingWindowsCommand,

71 FSlateUpdatableInstanceBuffer&, Self, *this,

72 int32, BufferIndex, FreeBufferIndex,

mongod.cpp (https://github.com/mongodb/mongo.git) C++ · 49 lines

37 // In Windows, wmain() is an alternate entry point for main(), and receives the same parameters

38 // as main() but encoded in Windows Unicode (UTF-16); "wide" 16-bit wchar_t characters. The

39 // WindowsCommandLine object converts these wide character strings to a UTF-8 coded equivalent

40 // and makes them available through the argv() and envp() members. This enables mongoDbMain()

41 // to process UTF-8 encoded arguments and environment variables without regard to platform.

42 int wmain(int argc, wchar_t* argvW[]) {

43 mongo::quickExit(mongo::mongod_main(argc, mongo::WindowsCommandLine(argc, argvW).argv()));

44 }

45 #else

RemoteProgram.pm (https://github.com/colloquium/spacewalk.git) Perl · 36 lines

18

19

20 # Runs the command, assigns the status, and returns the WindowsCommand object.

21 sub run_command {

22 my %args = @_;

hibinfo.py (https://github.com/giantbranch/python-hacker-code.git) Python · 83 lines

28 import volatility.win32.tasks as tasks

29

30 class HibInfo(common.AbstractWindowsCommand):

31 """Dump hibernation file information"""

32

GetActivityWindowTests.cs (https://github.com/Azure/azure-powershell.git) C# · 259 lines

30 private const string activityName = "activity";

31

32 private GetAzureDataFactoryActivityWindowsCommand cmdlet;

33

34 private List<PSActivityWindow> expectedDf;

83 public void CanListDataFactoryActivityWindows()

84 {

85 cmdlet = new GetAzureDataFactoryActivityWindowsCommand()

86 {

87 CommandRuntime = commandRuntimeMock.Object,

115 public void CanListPipelineActivityWindows()

116 {

117 cmdlet = new GetAzureDataFactoryActivityWindowsCommand()

118 {

119 CommandRuntime = commandRuntimeMock.Object,

CreateWindowsCommand.as (https://github.com/GunioRobot/crayon.git) ActionScript · 65 lines

27 import org.voisen.crayon.view.editor.EditorWindow;

28

29 public class CreateWindowsCommand extends SignalCommand

30 {

31 //--------------------------------------------------------------------------

44 //--------------------------------------------------------------------------

45

46 public function CreateWindowsCommand()

47 {

48 }

Aws_json1_1.ts (https://github.com/aws/aws-sdk-js-v3.git) TypeScript · 21434 lines

149 } from "../commands/DescribeMaintenanceWindowTasksCommand";

150 import {

151 DescribeMaintenanceWindowsCommandInput,

152 DescribeMaintenanceWindowsCommandOutput,

153 } from "../commands/DescribeMaintenanceWindowsCommand";

154 import {

155 DescribeMaintenanceWindowsForTargetCommandInput,

SSMClient.ts (https://github.com/aws/aws-sdk-js-v3.git) TypeScript · 829 lines

149 } from "./commands/DescribeMaintenanceWindowTasksCommand";

150 import {

151 DescribeMaintenanceWindowsCommandInput,

152 DescribeMaintenanceWindowsCommandOutput,

153 } from "./commands/DescribeMaintenanceWindowsCommand";

154 import {

155 DescribeMaintenanceWindowsForTargetCommandInput,

467 | DescribeMaintenanceWindowTargetsCommandInput

468 | DescribeMaintenanceWindowTasksCommandInput

469 | DescribeMaintenanceWindowsCommandInput

470 | DescribeMaintenanceWindowsForTargetCommandInput

471 | DescribeOpsItemsCommandInput

591 | DescribeMaintenanceWindowTargetsCommandOutput

592 | DescribeMaintenanceWindowTasksCommandOutput

593 | DescribeMaintenanceWindowsCommandOutput

594 | DescribeMaintenanceWindowsForTargetCommandOutput

595 | DescribeOpsItemsCommandOutput

SSM.ts (https://github.com/aws/aws-sdk-js-v3.git) TypeScript · 4971 lines

236 } from "./commands/DescribeMaintenanceWindowTasksCommand";

237 import {

238 DescribeMaintenanceWindowsCommand,

239 DescribeMaintenanceWindowsCommandInput,

240 DescribeMaintenanceWindowsCommandOutput,

241 } from "./commands/DescribeMaintenanceWindowsCommand";

Aws_json1_1.ts (https://github.com/aws/aws-sdk-js-v3.git) TypeScript · 3630 lines

6 import { CreateLocationEfsCommandInput, CreateLocationEfsCommandOutput } from "../commands/CreateLocationEfsCommand";

7 import {

8 CreateLocationFsxWindowsCommandInput,

9 CreateLocationFsxWindowsCommandOutput,

10 } from "../commands/CreateLocationFsxWindowsCommand";

11 import { CreateLocationNfsCommandInput, CreateLocationNfsCommandOutput } from "../commands/CreateLocationNfsCommand";

12 import {

26 } from "../commands/DescribeLocationEfsCommand";

27 import {

28 DescribeLocationFsxWindowsCommandInput,

29 DescribeLocationFsxWindowsCommandOutput,

30 } from "../commands/DescribeLocationFsxWindowsCommand";

31 import {

32 DescribeLocationNfsCommandInput,

DataSync.ts (https://github.com/aws/aws-sdk-js-v3.git) TypeScript · 1133 lines

12 } from "./commands/CreateLocationEfsCommand";

13 import {

14 CreateLocationFsxWindowsCommand,

15 CreateLocationFsxWindowsCommandInput,

16 CreateLocationFsxWindowsCommandOutput,

17 } from "./commands/CreateLocationFsxWindowsCommand";

55 } from "./commands/DescribeLocationEfsCommand";

56 import {

57 DescribeLocationFsxWindowsCommand,

58 DescribeLocationFsxWindowsCommandInput,

59 DescribeLocationFsxWindowsCommandOutput,

60 } from "./commands/DescribeLocationFsxWindowsCommand";

246 */

247 public createLocationFsxWindows(

248 args: CreateLocationFsxWindowsCommandInput,

249 options?: __HttpHandlerOptions

250 ): Promise<CreateLocationFsxWindowsCommandOutput>;

2ab2aa96383b2234ba94eb697c227e6ddcf1f696Plugins.fs (https://github.com/aliostad/deep-learning-lang-detection.git) F# · 193 lines

74 let! (result : ProcessResults<unit>) =

75 (sprintf "plugin inspect %s " pluginInfo.ImageName)

76 |> Arguments.OfWindowsCommandLine

77 |> DockerWrapper.createProcess

78 |> wrapProcess

82 do!

83 (sprintf "plugin disable --force %s" pluginInfo.ImageName)

84 |> Arguments.OfWindowsCommandLine

85 |> DockerWrapper.createProcess

86 |> CreateProcess.ensureExitCode

91 (sprintf "plugin set %s %s"

92 pluginInfo.ImageName settingsCmdLine)

93 |> Arguments.OfWindowsCommandLine

94 |> DockerWrapper.createProcess

95 |> CreateProcess.ensureExitCode

WindowsCommandRetriever.java (https://github.com/bluepimento/openflexo.git) Java · 73 lines

28 *

29 */

30 public class WindowsCommandRetriever {

31 /**

32 *

WindowsCommandBuilder.java (https://github.com/apache/reef.git) Java · 86 lines

37 */

38 @Private

39 public class WindowsCommandBuilder extends AbstractCommandBuilder {

40

41 private static final Class LAUNCHER_CLASS = REEFLauncher.class;

52

53 @Inject

54 WindowsCommandBuilder(

55 final ClasspathProvider classpathProvider,

56 final RuntimePathProvider runtimePathProvider,

TestNGIntegrationTest.groovy (https://github.com/danmueller/gradle.git) Groovy · 119 lines

102 }

103

104 // output: output, error: error, command: actualCommand, unixCommand: unixCommand, windowsCommand: windowsCommand

105 project.doAssert(projectDir, result)

106 }

common.go (https://github.com/elastic/beats.git) Go · 137 lines

77

78 // windows special hidden sub-command (only added on windows)

79 reexec := newReExecWindowsCommand(flags, args, streams)

80 if reexec != nil {

81 cmd.AddCommand(reexec)

modules.py (https://github.com/giantbranch/python-hacker-code.git) Python · 89 lines

28 import volatility.utils as utils

29

30 class Modules(common.AbstractWindowsCommand):

31 """Print list of loaded modules"""

32 def __init__(self, config, *args, **kwargs):

33 common.AbstractWindowsCommand.__init__(self, config, *args, **kwargs)

34 config.add_option("PHYSICAL-OFFSET", short_option = 'P', default = False,

35 cache_invalidator = False, help = "Physical Offset", action = "store_true")

66 return result

67

68 class UnloadedModules(common.AbstractWindowsCommand):

69 """Print list of unloaded modules"""

70

CrayonSuite.as (https://github.com/GunioRobot/crayon.git) ActionScript · 26 lines

1 package org.voisen.crayon

2 {

3 import org.voisen.crayon.command.startup.CreateWindowsCommandTest;

4 import org.voisen.crayon.view.editor.EditorWindowTest;

5

14 //--------------------------------------------------------------------------

15

16 public var createWindowsCommandTest:CreateWindowsCommandTest;

17

18 //--------------------------------------------------------------------------

CloseAllSQLResultWindowsAction.java (https://github.com/igorhvr/squirrel-sql.git) Java · 76 lines

49

50 /**

51 * Perform this action. Uses the <TT>CloseAllSQLResultWindowsCommand</TT>.

52 *

53 * @param evt The current event.

66 // Can't work with ISessionAction because if a result window is on top

67 // the session in a ISessionAction is null.

68 new CloseAllSQLResultWindowsCommand(activeSession.getSQLPanelAPIOfActiveSessionWindow()).execute();

69 }

70 }

sockets.py (https://github.com/giantbranch/python-hacker-code.git) Python · 72 lines

29 import volatility.protos as protos

30

31 class Sockets(common.AbstractWindowsCommand):

32 """Print list of open sockets"""

33 def __init__(self, config, *args, **kwargs):

34 common.AbstractWindowsCommand.__init__(self, config, *args, **kwargs)

35 config.add_option("PHYSICAL-OFFSET", short_option = 'P', default = False,

36 cache_invalidator = False,

bioskbd.py (https://github.com/giantbranch/python-hacker-code.git) Python · 64 lines

28 import volatility.debug as debug

29

30 class BiosKbd(common.AbstractWindowsCommand):

31 """Reads the keyboard buffer from Real Mode memory"""

32 BASE = 0x400

CloseAllSQLResultWindowsCommand.java (https://github.com/igorhvr/squirrel-sql.git) Java · 58 lines

29 * @author <A HREF="mailto:colbell@users.sourceforge.net">Colin Bell</A>

30 */

31 public class CloseAllSQLResultWindowsCommand implements ICommand

32 {

33 private final ISQLPanelAPI _api;

41 * Thrown if a <TT>null</TT> <TT>ISession</TT> passed.

42 */

43 public CloseAllSQLResultWindowsCommand(ISQLPanelAPI api)

44 {

45 super();

WindowsCommandLineProcessor.java (https://github.com/JetBrains/intellij-community.git) Java · 29 lines

9 * has ourMirrorClass initialized by the Bootstrap class; it calls the main instance of itself via reflection.

10 */

11 public final class WindowsCommandLineProcessor {

12 // The MainRunner class which is loaded in the main IDEA (non-bootstrap) classloader.

13 public static Class<?> ourMainRunnerClass;

ConcatCommandFactory.scala (https://bitbucket.org/mehmedbasic/scalaudiobookconverter.git) Scala · 44 lines

13 val fileList: File = createFileList()

14

15 protected def createWindowsCommand(): Command = {

16 new Command("\"" + new File(".").getAbsolutePath + "\\external\\ffmpeg.exe\"")

17 }

windows.py (https://github.com/Cisco-Talos/pyrebox.git) Python · 105 lines

46

47 def __init__(self, config, *args, **kwargs):

48 common.AbstractWindowsCommand.__init__(self, config, *args, **kwargs)

49

50 # Filter specific processes

DoubleQuotedArgumentsOnWindowsCommandLine.java (https://github.com/sgk/Arduino.git) Java · 35 lines

6 import java.io.File;

7

8 public class DoubleQuotedArgumentsOnWindowsCommandLine extends CommandLine {

9

10 public DoubleQuotedArgumentsOnWindowsCommandLine(String executable) {

12 }

13

14 public DoubleQuotedArgumentsOnWindowsCommandLine(File executable) {

15 super(executable);

16 }

17

18 public DoubleQuotedArgumentsOnWindowsCommandLine(CommandLine other) {

19 super(other);

20 }

StartupCommand.as (https://github.com/GunioRobot/crayon.git) ActionScript · 54 lines

47 addCommand(MapModelsCommand);

48 //TODO - check for updates

49 addCommand(CreateWindowsCommand);

50

51 super.execute();

injector.test.ts (https://github.com/khanhas/ueli.git) TypeScript · 135 lines

80 const acutalMac = Injector.getOpenUrlWithDefaultBrowserCommand(mac, testUrl);

81

82 expect(actualWin).toBe(OpenUrlWithDefaultBrowserCommandBuilder.buildWindowsCommand(testUrl));

83 expect(acutalMac).toBe(OpenUrlWithDefaultBrowserCommandBuilder.buildMacCommand(testUrl));

84 });

commands.go (https://gitlab.com/klauer/caddy) Go · 120 lines

17

18 if runtimeGoos == "windows" {

19 parts = parseWindowsCommand(command) // parse it Windows-style

20 } else {

21 parts, err = parseUnixCommand(command) // parse it Unix-style

45 }

46

47 // parseWindowsCommand parses windows command lines and

48 // returns the command and the arguments as an array. It

49 // should be able to parse commonly used command lines.

59 // of the shlex package because this function treats backslash

60 // characters properly.

61 func parseWindowsCommand(cmd string) []string {

62 const backslash = '\\'

63 const quote = '"'

build_windows.dart (https://github.com/flutter/flutter.git) Dart · 66 lines

18

19 /// A command to build a windows desktop target through a build shell script.

20 class BuildWindowsCommand extends BuildSubCommand {

21 BuildWindowsCommand({ bool verboseHelp = false }) {

index.ts (https://github.com/aws/aws-sdk-js-v3.git) TypeScript · 135 lines

47 export * from "./commands/DescribeMaintenanceWindowExecutionTaskInvocationsCommand";

48 export * from "./commands/DescribeMaintenanceWindowExecutionTasksCommand";

49 export * from "./commands/DescribeMaintenanceWindowsCommand";

50 export * from "./commands/DescribeMaintenanceWindowScheduleCommand";

51 export * from "./commands/DescribeMaintenanceWindowsForTargetCommand";

InterfaceTraffic.pm (https://github.com/colloquium/spacewalk.git) Perl · 31 lines

3 use strict;

4

5 use NOCpulse::Probe::DataSource::WindowsCommand;

6

7 sub run {

sessions.py (https://github.com/giantbranch/python-hacker-code.git) Python · 109 lines

65 return obj.NoneObject("Cannot locate a session")

66

67 class Sessions(common.AbstractWindowsCommand, SessionsMixin):

68 """List details on _MM_SESSION_SPACE (user logon sessions)"""

69

SSHClientLauncher.java (https://bitbucket.org/ianspigeon/applauncher.git) Java · 37 lines

20

21 if (isWindows()) {

22 return executeWindowsCommand(new String[] {"C:\\Program Files\\PuTTY\\putty.exe",

23 "-ssh", "-P", port, hostname, "-l", username});

24

ESXClientLauncher.java (https://bitbucket.org/ianspigeon/applauncher.git) Java · 34 lines

19

20 if (isWindows()) {

21 return executeWindowsCommand(new String[] {"C:\\Program Files\\Common Files\\VMware\\VMware VMRC Plug-in\\Internet Explorer\\vmware-vmrc.exe",

22 "-h", hostname, vm});

23

shutdown.py (https://github.com/Cisco-Talos/pyrebox.git) Python · 110 lines

37 import struct

38

39 class ShutdownTime(common.AbstractWindowsCommand):

40 "Print ShutdownTime of machine from registry"

41

42 def __init__(self, config, *args, **kwargs):

43 common.AbstractWindowsCommand.__init__(self, config, *args, **kwargs)

44 config.add_option('HIVE-OFFSET', short_option = 'o',

45 help = 'Hive offset (virtual)', type = 'int')

index.ts (https://github.com/microsoft/react-native-windows.git) TypeScript · 93 lines

13

14 import {autoLinkCommand} from './runWindows/utils/autolink';

15 import {runWindowsCommand} from './runWindows/runWindows';

16 import {dependencyConfigWindows} from './config/dependencyConfig';

17 import {projectConfigWindows} from './config/projectConfig';

89 assertStableInterface;

90

91 export const commands = [autoLinkCommand, runWindowsCommand];

92 export const dependencyConfig = dependencyConfigWindows;

93 export const projectConfig = projectConfigWindows;

windows.js (https://github.com/dthree/cash.git) JavaScript · 145 lines

106 // Cash help.

107 let windowsHelpFlag = false;

108 const windowsCommandReject = 'is not recognized as an internal or external command';

109

110 /* istanbul ignore next */

116 proc.stderr.on('data', function (data) {

117 const str = data.toString('utf8');

118 if (windows && str.indexOf(windowsCommandReject) > -1) {

119 windowsHelpFlag = true;

120 return;