作者MOONRAKER (㊣烏笨禿,又笨又禿)
看板Visual_Basic
標題Re: [.NET]撰寫CMD檔要如何使用VB裡已宣告的變數??
時間Sun Apr 27 01:34:57 2008
※ 引述《awpboom (awp)》之銘言:
: Shell("cmd.exe /c arp -s a b")
: 為什麼我的a和b在cnd裡面都讀不到
這樣會讀到有鬼 你又不是在寫shell script
shellcue = "cmd.exe /c arp -s " & a.toString() & " " & b.toString()
shell(shellcue)
這樣還差不多
--
如何隱身 - SPAM - 英國殺人笑話 - AND LOTS MORE
Unlimited Pythonesque adventure, spam-a-lot and prosper with Monty Python!
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
■ 蒙帝派松正體中文計畫 ■ http://www.youtube.com/user/JamesBondXD
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 59.115.202.230
推 awpboom:我還是不大懂耶...ˊˋ 04/27 03:15
→ MOONRAKER:不懂!? 04/27 11:13
推 awpboom:我要把shellcue宣告成什麼 我複製整行進去也不行耶 04/27 13:07
→ MOONRAKER:……很多字串成一條 當然就是字串(string)了 04/27 18:31