Go Back   CodingForums.com > :: Computing & Sciences > Computer Programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 09-16-2010, 10:08 PM   PM User | #1
RDKamikaze
New to the CF scene

 
Join Date: Sep 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
RDKamikaze is an unknown quantity at this point
Question What language to use for running a shell within cmd?

Howdy! I'm new here and I have a huge question.

Question: I'm trying to run commands automatically on a shell within cmd and don't know what to do.

Example:
Code:
cd C:\android-sdk\tools
adb shell
cd /data/local/tmp   <-----Note: This should be run WITHIN the adb shell
Dilemma: I have been trying to make a .bat file with those exact commands (and others, but let's take it one step at a time) but once it gets to adb shell the cd /data/local/tmp command won't do anything. The .bat file pauses I'm assuming at sdb shell because it starts a new shell within the cmd shell.

So which language/how can I be able to type commands automatically within the adb shell? I have success making a vbscript with SendKeys but that's WAAAY inefficient for if the user clicks away from the screen, the code will not properly be run.

Please, any input on this would be great!! I'm trying to get this program up and running but this is holding me back
RDKamikaze is offline   Reply With Quote
Reply

Bookmarks

Tags
cmd, code problems, command shell, vbs, vbscript

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:11 PM.


Advertisement
Log in to turn off these ads.