Jump to content

Making a cmd


Guest ColinMCMXC

Recommended Posts

Guest ColinMCMXC
Posted

hi, when i want to connect my phone to my pc and wirelessly use adb commander, what i do it is run cmd and type "adb connect 192.168.1.10:????" and hit enter, then i have to open adb commander

so what i want to do is to make a file that will do all that for me.

is it possible or am i wasting my time and just being lazy?

Guest AntonioPT
Posted
hi, when i want to connect my phone to my pc and wirelessly use adb commander, what i do it is run cmd and type "adb connect 192.168.1.10:????" and hit enter, then i have to open adb commander

so what i want to do is to make a file that will do all that for me.

is it possible or am i wasting my time and just being lazy?

You could write a .bat file like this (my Windows script abilities are kinda rusty, anyone correct me if anything is wrong :lol:):

@echo off

adb connect 192.168.1.10:port

start "C:/Program Files/wherever adb commander is/adbcommander.exe"

Guest ColinMCMXC
Posted

hi, i just gave that a go, but no luck, so i removed to echo part and it come up with the adb command but didnt execute it

Guest rulerofkaos
Posted
hi, i just gave that a go, but no luck, so i removed to echo part and it come up with the adb command but didnt execute it

You have to start the .bat in the same folder as adb.exe or add the path of adb.exe to the system.

Guest ColinMCMXC
Posted

ok so adb is connecting to the phone now, but its still not starting the program, it seems to be opening a new command window

btw, thanks for all your help so far :lol:

Guest cleguevara
Posted
ok so adb is connecting to the phone now, but its still not starting the program, it seems to be opening a new command window

btw, thanks for all your help so far :lol:

you don't need "start"

...btw: recently it's convention to save the windows-shellscripts as .cmd and not .bat

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.