CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   Computer Programming (http://www.codingforums.com/forumdisplay.php?f=21)
-   -   What language to use for running a shell within cmd? (http://www.codingforums.com/showthread.php?t=204797)

RDKamikaze 09-16-2010 10:08 PM

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 :(


All times are GMT +1. The time now is 05:02 PM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.