5 Replies - 2030 Views - Last Post: 23 June 2014 - 07:15 AM Rate Topic: -----

#1 ifyouknowme   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 19
  • Joined: 22-June 14

help automating command prompt using vb.net

Posted 22 June 2014 - 04:26 PM

how to automate cmd using vb.net

what if trying to do is convert .vbs to vb.net

the vbs code is used to
*open telnet
*login account
*execute command to reboot modem

as of now this is my code
https://m.facebook.com/photo.php?fbid=679487182121509&id=100001806993997&set=pcb.679487192121508&source=48&refid=17&_ft_

and this is the error
https://m.facebook.com/photo.php?fbid=679487178788176&id=100001806993997&set=pcb.679487192121508&source=48&refid=17&_ft_

but if i click start run cmd and type the command it works perfectly

and if i changed the code in vb.net to ping -t google.com

it works but if i change it again to telnet it says the error again

this is the code

Posted Image
Posted Image

sorry i cant edit my first post

Is This A Good Question/Topic? 0
  • +

Replies To: help automating command prompt using vb.net

#2 modi123_1   User is online

  • Suitor #2
  • member icon



Reputation: 14039
  • View blog
  • Posts: 56,187
  • Joined: 12-June 08

Re: help automating command prompt using vb.net

Posted 22 June 2014 - 04:39 PM

FYI - you can copy/paste your code (and use the 'code' button in the editor) versus attempting to throw in images.


Reading this over - soooooo what'cha doing? You have a timer set to kick off telnetting into an address and rebooting a modem? Why? What's up with that?
Was This Post Helpful? 0
  • +
  • -

#3 ifyouknowme   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 19
  • Joined: 22-June 14

Re: help automating command prompt using vb.net

Posted 22 June 2014 - 09:50 PM

sorry for posting image. i cant login using my computer. it doesnt load the login page. but using mobile phone works

about the timer. i use it to make sure that command prompt execute first before sending the telnet command.


and about the why i am doing those things. i just to expand my knowledge sir. and to learn how to convert the vbs to vb.net codes. instead of executing the saved vbs from hard disk
Was This Post Helpful? 0
  • +
  • -

#4 modi123_1   User is online

  • Suitor #2
  • member icon



Reputation: 14039
  • View blog
  • Posts: 56,187
  • Joined: 12-June 08

Re: help automating command prompt using vb.net

Posted 22 June 2014 - 09:55 PM

Quote

sorry for posting image. i cant login using my computer. it doesnt load the login page.

Huh? Were you a previous member here?



Hmm.. interesting since, it seems form the code given, it looks like you may be trying to jam up someone's router/modem by think about trying to telnet in and rebooting it on a timer.
Was This Post Helpful? 0
  • +
  • -

#5 ifyouknowme   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 19
  • Joined: 22-June 14

Re: help automating command prompt using vb.net

Posted 23 June 2014 - 02:39 AM

yes and i forgot my email. but as i remember i didnt used it.

can you help me with my problem?
Was This Post Helpful? 0
  • +
  • -

#6 modi123_1   User is online

  • Suitor #2
  • member icon



Reputation: 14039
  • View blog
  • Posts: 56,187
  • Joined: 12-June 08

Re: help automating command prompt using vb.net

Posted 23 June 2014 - 07:15 AM

Quote

yes and i forgot my email. but as i remember i didnt used it.

Would you PM that name?

Quote

can you help me with my problem?

Perhaps I missed the reply regarding why you are using a timer to jam someone's modem up and telling it to shut down (repeatedly)?
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1