Article View: fj.lang.visualbasic
Article #1008コマンド引数を分解する。
From: M.Kumai
Date: Wed, 19 Nov 1997 00:00
Date: Wed, 19 Nov 1997 00:00
48 lines
1744 bytes
1744 bytes
$B$/$^$$$G$9!#$*@$OC$K$J$C$F$*$j$^$9!#(J $B$5$C$=$/$G$9$,<ALd$G$9!#(J aaa.exe a b c d e $B$r<B9T$7$^$7$?!#(J command$B4X?t$r;H$C$F!"%3%^%s%I0z?t$G$"$k(J "a b c d e"$B$r(Jstring$B7?JQ?t$K3JG<$7$^$7$?!#(J $BEvJ}$G$O<B9T;~$K;XDj$5$l$?!"$3$l$i(J5$B$D$N(J $B0z?t$r$=$l$>$lI>2A$7!"$=$N8e$N=hM}$r7hDj(J $B$9$k$h$&$K$7$h$&$H;W$C$F$$$^$9!#(J $B$D$^$j!"0J2<$N$h$&$J=hM}$r$7$?$$$N$G$9!#(J dim Cmdline as string dim Dim firstarg, secondarg, thirdarg, fourtharg, fiftharg As String Cmdline = Command '$B%3%^%s%I0z?t<h$j9~$_(J cmdline = "a b c d e" 'Cmdline$B$+$i!"3F0z?t$r2rBNJ,N%!#(J 'firstarg = "a" 'secondarg = "b" 'thirdarg = "c" 'fourtharg = "d" 'fiftharg = "e" if firstarg = "a" then (I%%%%%(J elseif secondarg = "b" then (I%%%%%(J end if $B>e5-$NNc$N2rBNJ,N%$N$d$jJ}$K$D$$$FG:$s$G$$$^$9!#(J $B1s2s$j$J$d$jJ}$J$i2?$+$"$k$h$&$J5$$,$7$^$9$,!"(J $B4JC1$KJ,2r$9$k$3$H$O$G$-$J$$$+C5$C$F$$$^$9!#(J $B2?$+%*%9%9%a$N4X?t$d%9%F!<%H%a%s%H$,$"$kJ}(J $B%l%92<$5$$!#$=$l$G$O!#(J ------------------------------------------- $B$/$^$$!!$_$D$f$-!!#2#6:P(J <PRIVATE E-MAIL:copoo@mxn.meshnet.or.jp> $B!Z(JMUSIC BBS STATION$B![!!9%I>8x3+Cf(J!! <URL:http://www2q.meshnet.or.jp/~copoo/ura/>
Technical Details
Message-ID:
<34727D3B.1FE8@mxn.meshnet.or.jp>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: Japanese,JIS X-Google-Thread: 105c2e,c47bedc0e0e8aa20,start X-Google-Attributes: gid105c2e,public From: "M.Kumai" <copoo@mxn.meshnet.or.jp> Subject: コマンド引数を分解する。 Date: 1997/11/19 Message-ID: <34727D3B.1FE8@mxn.meshnet.or.jp> X-Deja-AN: 290686257 Organization: Communications Research Laboratory, M.P.T. Japan Reply-To: copoo@mxn.meshnet.or.jp Newsgroups: fj.lang.visualbasic