New: XDA launches forum for app developers. Discuss coding, tools, marketing, and more.
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
DJ_Spray
Old
#1  
Senior Member - OP
Thanks Meter 0
Posts: 104
Join Date: Jul 2008
Default how to create batch files?

Hi all,

I just did a cyanogenmod update, and obviously it has removed my custom AZERTY keyboard layout.
not that it is difficult to redo, but it is just something like twelve/fifteen lines of command to type...
is there any way of doing a batch file that would do the copy i am looking for?
thanks for your help,

Allan.
 
Diceman4
Old
#2  
Diceman4's Avatar
Senior Member
Thanks Meter 4
Posts: 426
Join Date: Jun 2009
Location: St. Louis
Quote:
Originally Posted by DJ_Spray View Post
Hi all,

I just did a cyanogenmod update, and obviously it has removed my custom AZERTY keyboard layout.
not that it is difficult to redo, but it is just something like twelve/fifteen lines of command to type...
is there any way of doing a batch file that would do the copy i am looking for?
thanks for your help,

Allan.
Yes. Google is the answer to all of your questions.
-Dice
=================
Phone: Nexus One
ROM: CyanogenMod

Retired: G1
 
jashsu
Old
#3  
jashsu's Avatar
Senior Member
Thanks Meter 4
Posts: 1,845
Join Date: Nov 2008
Quote:
Originally Posted by DJ_Spray View Post
is there any way of doing a batch file that would do the copy i am looking for?
Type everything you would normally type at the cmd prompt into a text file and rename it with a .bat extension? I'm not sure if that's what you want, but that's the basic gist of it.

Note: bat files can't interact with the adb interactive shell, so you'll have to preface every command you do in adb with "adb shell "
 
keemyb
Old
#4  
keemyb's Avatar
Senior Member
Thanks Meter 7
Posts: 100
Join Date: Aug 2009
Oh and use notepad++, trust me it helps alot
 
DJ_Spray
Old
#5  
Senior Member - OP
Thanks Meter 0
Posts: 104
Join Date: Jul 2008
thanks for the google search proposal.......

what you tell me is using my computer, but the whole idea is to do it directly on the phone. I'm not really sure if .bat files will work under android....
 
david1171
Old
#6  
Senior Member
Thanks Meter 161
Posts: 3,202
Join Date: Apr 2009

 
DONATE TO ME
adb shell is the same thing as running it on your phone. if you don't have adb then use gscripts and make one for it
Device: Nexus S 4G
ROM: CM7
CM7 Theme Engine: MinimalBread
App Mod: Demotivators Protips Widget
My Icon Sets: Minimalist and Minimal
Twitter: david1171_
Google Chrome Theme: Minimalist
PayPal: If you would like to donate
 
DJ_Spray
Old
#7  
Senior Member - OP
Thanks Meter 0
Posts: 104
Join Date: Jul 2008
Quote:
Originally Posted by david1171 View Post
adb shell is the same thing as running it on your phone. if you don't have adb then use gscripts and make one for it
I know adb shell is the same...

anyway, found out that typing from a terminal bash mybatch.bat would run what's in it, sounds like exactly what I was asking for......
 
david1171
Old
#8  
Senior Member
Thanks Meter 161
Posts: 3,202
Join Date: Apr 2009

 
DONATE TO ME
Quote:
Originally Posted by DJ_Spray View Post
I know adb shell is the same...

anyway, found out that typing from a terminal bash mybatch.bat would run what's in it, sounds like exactly what I was asking for......
sorry i really didn't interpret your previous comment the right way. glad you got it to work though
Device: Nexus S 4G
ROM: CM7
CM7 Theme Engine: MinimalBread
App Mod: Demotivators Protips Widget
My Icon Sets: Minimalist and Minimal
Twitter: david1171_
Google Chrome Theme: Minimalist
PayPal: If you would like to donate


XDA PORTAL POSTS

Pearl Chen to Talk NFC Development at XDA:DevCon 2013

From HTML to LEDs or Android to Arduino, Hardware Hacking is a pastime of many people … more

Avoid Framework Bootloops on Xperias Running Jelly Bean

If you’re a Sony device owner running a stock Android Jelly Bean firmware and … more

Forum Added for the Samsung Galaxy Mega

What do you do when the Galaxy Note line is simply not big enough? You get theSamsung Galaxy Mega. … more

Voice Control Your Phone with Tasker and AutoVoice – XDA Developer TV

XDA Developer TV Producer Kevin set up his phone to respond to … more