約 5,187,978 件
https://w.atwiki.jp/miracle_mikuru/pages/19.html
・コマンドライン引数には""がついている "xxx" ・コマンドライン引数が複数ある場合にはスペースで区切られている。 "xxx" "yyy" "zzz" ////////////////////////////////////////// /** *起動引数 (コマンドライン引数) */ void getCommandLine( CStringArray _array ) { #ifdef _UNICODE int count; LPTSTR* args = CommandLineToArgvW( GetCommandLine(), count); _array.SetSize(count); for(int i=0; i count; i++) { _array[i] = args[i]; } LocalFree(args); #else _array.SetSize(__argc); for(int i=0; i __argc; i++) { _array[i] = __argv[i]; } #endif // ※最初の文字列はアプリケーションのパスなので削除する if(_array.GetSize() 0) { _array.RemoveAt(0); } }
https://w.atwiki.jp/whitebrowser/pages/126.html
起動と同時に指定キーワード検索やタグレット実行などができます また、起動中のWhiteBrowser.exeがすでに存在している場合、 自動的起動中のWhiteBrowser.exeにそのコマンドラインを渡して検索やタグレットを実行させることができます(リダイレクト)。 オプション: -f : 後続文字列を検索 -d : 後続URLにある動画をダウンロード -t : 後続パスにある内容をタグレットとして実行(フルパスもしくtagletフォルダにあるファイルのファイル名) -p : コマンドラインを起動中のWhiteBrowserにリダイレクトしても、ウィンドウをアクティブにしません -1 ~ -9 : 引数、getArgvを参照ください 例:WhiteBrowser.exe -f "ねこ" 例:WhiteBrowser.exe -d "http //jp.youtube.com/watch?v=hPzNl6NKAG0" 例:WhiteBrowser.exe -p -t "C \test.js" 例:WhiteBrowser.exe -1 "C \test.avi" -t "registMovie.js" movie.wb
https://w.atwiki.jp/sevenlives/pages/1105.html
コマンドライン引数 CLI(インターフェース)? REPL?
https://w.atwiki.jp/air-lang/pages/29.html
整数 ARGC と 整数 ARGS ARGC には、コマンド名自身を含むコマンドライン引数の数(整数値)がセットされます。ARGS には、shift()可能なコマンドライン引数の数(整数値)がセットされます。(初期値は ARGC-1 ですが、 shift()ファミリ関数実行時に値が調整されます。) ARGC と ARGS を表示します。 print("ARGC=%d,ARGS=%d\n",ARGC,ARGS) str=shift() # コマンドライン引数を取得します。 print("ARGC=%d,ARGS=%d\n",ARGC,ARGS) 配列 ARGV[] ARGV[] には、コマンド名自身を含むコマンドライン引数(文字列)がセットされます。 ARGV[] の全要素を表示します。 for(i=0;i ARGC;i++){ # 0 から ARGC-1 までループします。 print("値=%s\n",ARGV[i]) # ARGV[i] は文字列です。 } 関数 shift() 関数 shift() は、呼び出される度に次のコマンドライン引数(文字列)を順番に戻します。戻すべきコマンドライン引数が無い場合は、引数で指定されたデフォルト値、又は、NULL が戻されます。 コマンドライン引数より2つのパラメータを取得します。 if( ARGC!=3 ){ # 引数の数を確認します。 eprint("Usage ${CMD} p1 p2\n") # 使用方法を表示します。${CMD}はコマンド名に置換されます。 exit(0) } p1=shift() # 第1コマンドライン引数を変数 p1 へセットします。(文字列) p2=shift() # 第2コマンドライン引数を変数 p2 へセットします。(文字列) コマンドライン引数より1つのパラメータ(ファイル名)を取得します。ただし、何も指定されなかった場合は、標準入力 STDIN をセットするものとします。 if( ARGC!=1 ARGC!=2 ){ # 引数の数を確認します。 eprint("Usage ${CMD} [file]\n") # 使用方法を表示します。${CMD}はコマンド名に置換されます。 exit(0) } file=shift(STDIN) # コマンドライン引数(又は、STDIN)を変数 file へセットします。
https://w.atwiki.jp/sevenlives/pages/1674.html
コマンドライン引数 読み:こまんどらいんひきすう 英語:command line argument 別名: 意味: コマンドライン引数とは、コマンドライン上で要求する引数のこと。main関数の引数として扱います。 2009年08月04日 C
https://w.atwiki.jp/terragen/pages/153.html
このドキュメントは2017年1月30日現在、Windows版Terragen 4(Build 4.0.11)のフォルダ内にある"Docs"フォルダの中の"win_command_line.txt"を翻訳したものです。 (\Program Files\Planetside Software\Terragen 4\Docs) Terragen 4のコマンドラインまたはシェル環境からの実行 TG4には2つの実行形式が用意されています tgd.exe コンソールに何も印字しません。バックグラウンドで実行を継続している間にすぐにコマンドプロンプトに戻ります。 tgdcli.exe "tgd.exe"とまったく同じですが、メッセージと警告がコンソールに表示され、実行が完了した後にのみコマンドプロンプトに戻ります。 両方の実行形式のファイルは、GUIの有無に関わらず実行する事ができ、どちらも同じコマンドラインオプションを共有します。 セットアップ "tgd"または"tgdcli"は、コマンドラインからいくつかの異なるモードで起動する事が出来ます。ただし、コマンドラインから実行する前に、いくつかの環境変数を設定する事をお勧めします。 If Terragen is not in the current working directory, it will probably make lots of complaints when it starts. It s not enough just to pass the full path of the tgdcli command when you run it. Terragen needs to know where it can find other related files. To fix this, you can set the TERRAGEN_PATH environment variable. For example, on the Windows command line or batch file set TERRAGEN_PATH=C \Program Files\Planetside Software\Terragen 4 In other shells you would use the appropriate syntax (such as setenv). IMPORTANT If you set the TERRAGEN_PATH variable you modify the behaviour of all instances of Terragen within the scope of the variable, and this may cause problems if you have multiple versions installed. You can avoid using the TERRAGEN_PATH variable if you cd to the directory before calling the executable. EXECUTION Once the environment variable is set, you can run Terragen. Here are some examples at the Windows command prompt or in a batch file. In other shells you would probably replace %TERRAGEN_PATH% with $TERRAGEN_PATH. Quotes are used to surround the executable path, because TERRAGEN_PATH may contains spaces. Run Terragen as normal "%TERRAGEN_PATH%/tgdcli" Run Terragen and load a project file "%TERRAGEN_PATH%/tgdcli" -p myproject.tgd Run Terragen without the GUI, render frame 42, then close "%TERRAGEN_PATH%/tgdcli" -p myproject.tgd -hide -exit -r -f 42 Run Terragen without the GUI, render frames 1,4,51,53,55,57,59, then close "%TERRAGEN_PATH%/tgdcli" -p myproject.tgd -hide -exit -r -f 1,4,51-60/2 IMPORTANT Currently Terragen automatically sets the -hide and -exit flags whenever -r is set, but you should always set -hide and -exit if you don t want this behaviour to change in future versions. ALL COMMAND LINE OPTIONS exit Exit Terragen after rendering has finished. Do not show any dialog boxes (because they may prevent exiting). f frameRange|commaSeparatedFrameRanges Set the frame range or list of frame ranges to render when -r is also used. If -r is not used, the current frame is set to the first in the range. The list can contain any combination of frames or frame ranges separated by commas without any whitespace. Example -f 34 Set the frame to render to 34. Example -f 1-100 Set the frame range to render from 1 to 100 (inclusive). Example -f 1-100/5 Set the frame range to render from 1 to 100 with a step size of 5. This produces the sequence 1, 6, 11, 16, ... , 96. Note that frame 100 is not rendered because 96 + 5 = 101 which is outside the specified range. Example -f 34,37,38 Set the list of frames to render to 34, 37, 38 Example -f 1-50,66,71-100/10 Set the list of frames to render from 1 to 50 (inclusive) followed by 66 followed by 71, 81, 91. Note that frame 100 is not rendered because 91 + 10 = 101 which is outside the specified range. hide Hide the graphical user interface. Do not show any dialog boxes. no3dpreview Do not open the 3D Preview automatically. nonetworkview Do not open the Network View automatically (except in Node Network Layout). o filename Set the renderer s output image filename to filename before rendering. C-style format strings can be used to automatically insert the frame number, eg. C \frames\image.%04d.IMAGETYPE.exr Supported image extensions are .bmp, .rgb, .sgi, .exr, .tif, .tiff ox filename Set the renderer s "extra output images" filename to filename before rendering. Extra output images should contain the string "IMAGETYPE" (not including quotes). When a render element is written, "IMAGETYPE" is automatically replaced by the name of the element. By default the only element is "tgAlpha", but additional elements can be enabled using a Render Layer. For example C \frames\image.0023.IMAGETYPE.exr may result in C \frames\image.0023.tgAlpha.exr C \frames\image.0023.tgSurfRgb.exr C \frames\image.0023.tgSurfAlpha.exr etc. or, if "create subfolders" option is enabled (in project or command line), may result in C \frames\tgAlpha\image.0023.tgAlpha.exr C \frames\tgSurfRgb\image.0023.tgSurfRgb.exr C \frames\tgSurfAlpha\image.0023.tgSurfAlpha.exr etc. C-style format strings can be used to automatically insert the frame number. Example C \frames\image.%04d.IMAGETYPE.exr Supported image extensions are .bmp, .rgb, .sgi, .exr, .tif, .tiff oxsubfolders Create and use subfolders when outputting render elements (extra output images). This overrides the "create subfolders" option in the project s render node. For example C \frames\image.0023.exr may result in C \frames\tgAlpha\image.0023.exr C \frames\tgSurfRgb\image.0023.exr C \frames\tgSurfAlpha\image.0023.exr etc. It can be combined with the use of "IMAGETYPE" in the filename, so the following is possible C \frames\tgAlpha\image.0023.tgAlpha.exr C \frames\tgSurfRgb\image.0023.tgSurfRgb.exr C \frames\tgSurfAlpha\image.0023.tgSurfAlpha.exr etc. If the command line contains both -oxsubfolders and -oxsubfolders=no then the behaviour is undefined. oxsubfolders=no Prevent the creation or use of subfolders when outputting render elements (extra output images). This overrides the "create subfolders" option in the project s render node, which is usually enabled. If the command line contains both -oxsubfolders and -oxsubfolders=no then the behaviour is undefined. p filename Open the project specified by filename before doing anything else. r Render current frame (or frame range with -f) using the "master" renderer; save output image and extra output images (if enabled). The -hide and -exit flags are set automatically in the current version. The "master" renderer is the render node which has its "master" setting enabled, or the first render node in the project if none are masters. Another render node can be made the "master" by using the -rendernode command line option. rendernode nodename Make nodename the "master" renderer after autoloading the project at startup. nodename must be the name of a render node in the project. Projects loaded subsequently are not affected. threads numberOfThreads Override the number of threads used for rendering and other multithreaded tasks. When used, this command line override takes priority over the min/max thread settings in the render node and the cores override in Preferences. tilex minx maxx Limit the rendered region to a fraction of the image or crop region to be rendered. minx and maxx should be numbers between 0 and 1, where minx maxx. For example, "-tilex 0 0.5" renders only the left half of the image or the left half of whatever crop region was already set. You can use both -tilex and -tiley simultaneously to define a rectangular region. tiley miny maxy Limit the rendered region to a fraction of the image or crop region to be rendered. miny and maxy should be numbers between 0 and 1, where miny maxy. For example, "-tiley 0 0.5" renders only the bottom half of the image or the bottom half of whatever crop region was already set. You can use both -tilex and -tiley simultaneously to define a rectangular region. cropoutput Crop the output image(s) to the dimensions of the rendered region (defined by "crop region" and/or -tilex, -tiley), i.e. do not pad to the full image dimensions. w filename The same as the -p option
https://w.atwiki.jp/gentoo-memo/pages/13.html
コマンドライン 基本 コマンド名 引数1 引数2 引数3 引数は空白や や によって分割される。 1つの引数に上の文字を含めたい場合 や"ではさむ。 引数に や"を含めたい場合\ や\"と書く。 オプション コマンド名 引数1 引数2 -- 引数3 引数4 引数のうち先頭がハイフンのものはオプションとして特別に扱われる場合が多い。 特別に扱ってほしくない場合は--以降に書くとオプションとみなされなくなる場合が多い。 オプションは引数の最初に書くほうがよいが、後に書いても動く場合が多い。 オプションのうち一文字のもの(-aや-Sなど)はまとめて指定できる場合が多い。(-aSなど) 各コマンドには大量のオプションがあるため下の方法で確認できる場合が多い。 コマンド名 --help 使用方法の説明では次のような形式が使われるが、[]で囲まれた部分は省略可能の意味。 コマンド名 [OPTION...] [FILE]... 標準入出力 コマンド名 引数1 引数2 ファイル名 引数3 引数4 コマンド実行時に ファイル名と書くと、そのファイルの中身をコマンドへの入力(標準入力)として与えることができる。 コマンド名 引数1 引数2 ファイル名 引数3 引数4 同様に、 ファイル名と書くと、コマンドの出力(標準出力)をそのファイルに書き込むことができる。(元の内容は消去される) コマンド名 引数1 引数2 ファイル名 引数3 ファイル名と書くと、出力をそのファイルの末尾に書き加える。 パイプ あるコマンドAの標準出力をあるコマンドBの標準入力にしたい場合、以下のように書く。 コマンドA 引数A1 引数A2 | コマンドB 引数B1 更にコマンドBの標準出力をあるコマンドCの標準入力に…とすることもできる。 コマンドA | コマンドB | コマンドC ... コマンドの終了 コマンドを強制終了する場合、Ctrl+c。 バックグラウンドジョブ コマンド名 引数1 引数2 コマンド実行時、最後に をつけるとそのコマンドの終了を待たずに次のコマンドを実行できる。 バックグラウンドジョブをフォアグラウンドジョブ(普通に実行される状態)にする場合、コマンドfgを使う。 フォアグラウンドジョブをバックグラウンドジョブにする場合、Ctrl+zで一時停止した後コマンドbgを使う。 リダイレクト(bashの話?) 例えばコマンドから通信路番号(ファイルディスクリプタ)4番への出力の出力先を変更したい場合は以下のようにする。 コマンド名 4 どこか 5番への入力元を変更したい場合は以下のようにする。 コマンド名 5 どこか 6番の出力先を、7番の出力先に変更したい場合以下のようにする。 コマンド名 6 7 0番を標準入力、1番を標準出力、2番を標準エラー出力と呼んでいる。 ファイルを入出力対象とした場合、裏でファイルに適当な番号が割り振られている。 "1 番号"は" 番号"と省略できる。 "0 番号"は" 番号"と省略できる。 " ファイル名 2 1"は" ファイル名"と省略できる。 参考 http //itpro.nikkeibp.co.jp/article/COLUMN/20060228/231093/ http //x68000.q-e-d.net/~68user/unix/pickup?%A5%EA%A5%C0%A5%A4%A5%EC%A5%AF%A5%C8
https://w.atwiki.jp/mashtool/pages/19.html
コマンドライン コマンドラインやバッチファイルなどから、ファイル名とオプションを指定してスクリプトを実行します。 オプション 終了コード ご意見・ご要望など オプション usage mash.exe file [args...] [-cm name] [-sbuilfdbt[] value] [-cs|vb|js] [-mr] [-h] オプション 説明 file 実行するファイル名です。 args 複数(空白区切り)の arg を string 配列型としてメソッドに引き渡します。sbuilfdbt[]オプションを使用する場合は args は無視されます。(※1) -c |--class 実行するクラス名 name を指定します。省略時はファイル名(拡張子除く)です。 -m |--method 実行するメソッド名 name を指定します。(※2)省略時は Main です。 -b |--byte value を byte 型としてメソッドに引き渡します。 -b[] |--byte[] value を byte 配列型としてメソッドに引き渡します。 -sb |--sbyte value を sbyte 型としてメソッドに引き渡します。 -sb[] |--sbyte[] value を sbyte 配列型としてメソッドに引き渡します。 -s |--short value を short 型としてメソッドに引き渡します。 -s[] |--short[] value を short 配列型としてメソッドに引き渡します。 -us |--ushort value を ushort 型としてメソッドに引き渡します。 -us[] |--ushort[] value を ushort 配列型としてメソッドに引き渡します。 -i |--int value を int 型としてメソッドに引き渡します。 -i[] |--int[] value を int 配列型としてメソッドに引き渡します。 -ui |--uint value を uint 型としてメソッドに引き渡します。 -ui[] |--uint[] value を uint 配列型としてメソッドに引き渡します。 -l |--long value を long 型としてメソッドに引き渡します。 -l[] |--long[] value を long 配列型としてメソッドに引き渡します。 -ul |--ulong value を ulong 型としてメソッドに引き渡します。 -ul[] |--ulong[] value を ulong 配列型としてメソッドに引き渡します。 -f |--float value を float 型としてメソッドに引き渡します。 -f[] |--float[] value を float 配列型としてメソッドに引き渡します。 -d |--double value を double 型としてメソッドに引き渡します。 -d[] |--double[] value を double 配列型としてメソッドに引き渡します。 -b |--bool value を bool 型としてメソッドに引き渡します。 -b[] |--bool[] value を bool 配列型としてメソッドに引き渡します。 -st |--string value を string 型としてメソッドに引き渡します。 -st[] |--string[] value を string 配列型としてメソッドに引き渡します。 -cs |--csharp 言語を C# とします。 -vb |--visualbasic 言語を Visual Basic とします。 -js |--jscript 言語を JScript とします。 -mr |--marshal 新規のアプリケーションドメインで実行します。省略時は既定のアプリケーションドメインで実行します。 -h |--help 起動引数を表示します。 (※1)args は stiring 配列型の1個の引数として渡され、 sbuilfdbtオプションは各々が引数として渡されます。 (※2)実行できるメソッドは static メソッドのみです。 終了コード mash.exe の終了コードです。 h オプション使用時 終了コードは -1 になります。 正常実行時 メソッドの戻り値が int 型の場合は、戻り値がそのまま終了コードになります。メソッドの戻り値が int 型でない場合は、終了コードは 0 になります。 例外発生時 例外の内容が標準エラーに出力され、終了コードは -1 になります。 ご意見・ご要望など コメントは最新の10件分だけ表示されます。 コメント すべてのコメントを見る
https://w.atwiki.jp/isoroku_be/pages/127.html
情報 作者名:五十六 引用元:なし 概要 Windowsコマンドを実行して、結果を返します。 勝手に空行を削除しています。 参考 Windowsコマンド集 ITpro http //itpro.nikkeibp.co.jp/free/NT/WinKeyWord/20040805/1/ サンプルプログラム WINDOWSバージョン取得して言う。 //本体 #----------------------------------------------------------------------- #----------------------------------------------------------------------- #----------------------------------------------------------------------- ●コマンドライン実行(Sの|Sを) DATA=「{COMSPEC} /c {S}」をコマンド実行。 DATAを空行削除して戻る。 ●空行削除(Sの|Sを) それ=S。S=空。反復、もし、対象≠空ならば、対象をSに配列追加。 Sで戻る。 #----------------------------------------------------------------------- #----------------------------------------------------------------------- #----------------------------------------------------------------------- #---以下利用例-- ●ネットワーク情報取得 「ipconfig /all」のコマンドライン実行して戻る。 ●ネットワーク切断 「ipconfig /release」のコマンドライン実行して戻る ●ネットワーク更新 「ipconfig /renew」のコマンドライン実行して戻る。 ●WINDOWSバージョン取得 「ver」のコマンドライン実行して戻る。 ●TCPアクティブ通信取得 A=「netstat -o -n -p tcp」のコマンドライン実行。 2回、Aの0を配列削除。 A=Aの「{改行}」を「 」へ置換。 A=Aの「\s+」を「,」へ正規表現置換。 A=Aの「 」を「{改行}」へ置換。 A=AをCSV取得。A=Aの0を表列削除。 Aで戻る。 ●UDPアクティブ通信取得 「netstat -o -n -p udp」のコマンドライン実行して戻る。 #----------------------------------------------------------------------- //サンプル #A=送受信バイト数取得。 #A@「送信」を言う。 ●通信統計情報取得 「netstat -E」のコマンドライン実行して戻る。 ●送受信バイト数取得 A=通信統計情報取得。 A[2]を『(\d+)\s+(\d+)』で正規表現マッチ。 Bとはハッシュ=空。 B=「受信={抽出文字列[0]}{改行}送信={抽出文字列[1]}」。 Bで戻る。 #----------------------------------------------------------------------- もらいます! -- h (2010-12-16 14 31 57) 名前 コメント
https://w.atwiki.jp/studymcl/pages/27.html
コマンドライン fdisk 標準で搭載されているfdisk_2.11yはバグがあって使えないので,2.11gに入れ替える。 fdisk_2.11g-5z_arm.ipkをインストールする。 使うときは以下のようにフルパスで行う。(でないと2.11yで行われる) # /usr/sbin/fdisk /dev/hda sudo sudo_1.6.8p12-1_arm.ipkをインストール。 # visudoで/etc/sudoersを編集する。 br; # /opt/QtPalmtop/sbin/visudo /etc/sudoers もしくは # sudoedit /etc/sudoers で行う。 いずれもダメな場合はパーミッションを変更してviで編集する。 # chmod 640 /etc/sudoers (デフォルトのsudoersのパーミッションは440) そしてviでいつものように編集する。 # vi /etc/sudoers 編集する箇所は # User privilege specification root ALL=(ALL) ALL ↓ # User privilege specification rootALL=(ALL) ALL zaurusALL=(ALL) ALL zaurusALL=NOPASSWD ALL とする。 パーミッションを変更した場合は戻しておく。visudo,sudoeditの場合は不要。 # chmod 440 /etc/sudoers このままsudoコマンドを使っても, sudo must be setuid root と出て使えないので,setuidしておく。 #chmod u+s /home/QtPalmtop/bin/sudo メモとして, sudoコマンドでpassを求められた場合はrootのではなくユーザのを入れる。 よってこの場合はpassは不要。 注意事項 この方法だと再起動するたびに # chmod u+s ~としなければならない。 swap自動起動のように自動起動させる方法もあるが, それも嫌なのでsudo_1.6.7p5-1_arm.ipkを入れ直した。 これだと今度はvisudoが使えなかったので,passなしにしたい場合は, # chmod 640 /home/etc/sudoers # vi /home/etc/sudoers で上記の記述をして, # chmod 440 /etc/sudoers としておく。 ref Ruby on Rails for Windowsさん ぺんちゃん日記さん じたばた日記さん nyaxtのPC作業ログさん nkf 漢字コード変換ツール。 ShiftJIS,EUC,JIS,Unicodeの変換,改行コードの変換ができるとのこと。 nkf_2.0.7-1_arm.ipkをインストール。 ref Walrus, Visit.さん zip,unzip zipの展開,圧縮。 それぞれ,zip_2.31-2_arm.ipk,unzip_5.52-2_arm.ipkをインストール。