FORUMS

HTC’s New Ad Campaign And What It Really Means

HTC has just released three new blind test adverts comparing app loading … more

XDA Picks: Best Apps of the Week (June 27 – July 4)

Apps are at the front and center of any smartphone experience, and with over a … more

HTC One M9 Developer Edition Android 5.1 OTA

The Developer Edition of the HTC One M9 is receiving an over-the-air update to Android 5.1. … more

Index Project For XDA Device Subforums

Another ambitious project from the collaborative efforts of Recognized Contributors and Forum … more

[REF] Making use of Windows "Send to" menu

1,399 posts
Thanks Meter: 457
 
By xan, Retired Recognized Developer on 13th November 2010, 03:39 PM
Post Reply Subscribe to Thread Email Thread
Pushing files over adb has never been easy. There are some external tools for sending files over adb, but I like native, Windows-integrated ones.

The trick is extremely easy. It works with adbWireless and similar applications. It could work with USB connection too, but I rarely use it.

HEADS UP: Be sure to check all nice(r) scripts by Daneshm90 down the thread!

Prerequisites:
-adb
-adbMagic or similar for wifi connection, none for USB only.

How to?
For better look you will need two files:

adb_send.cmd;
Code:
adb connect 192.168.1.103
adb push %1 /sdcard/
pause
and a shortcut to it, where you can customize icon and name.

1) create your adb_send.cmd anywhere on disk (I put mine in android-sdk-windows\tools directory),
2) customize the ip address, to point at your device (I have router with static DHCP, so everytime my device connects it leases the same address)
3) then go to:
Windows Vista/7:
Code:
%APPDATA%\Microsoft\Windows\SendTo
(paste it in explorer's address bar, or hit WIN+R and paste there, Enter), and place shortcut to script file created earlier. (drag it with right mouse button)
4) customize the icon and name of the shortcut
Next time you click on any file menu appears:
Attached Thumbnails
Click image for larger version

Name:	Untitled.png
Views:	880
Size:	12.3 KB
ID:	440360  
Last edited by xan; 16th November 2010 at 01:02 AM.
The Following User Says Thank You to xan For This Useful Post: [ View ]
 
 
13th November 2010, 04:38 PM |#2  
Junior Member
Flag New Delhi
Thanks Meter: 2
 
More
good idea, btw how did you find the ip address? 192.168.1.103... i am not able to send using the same
13th November 2010, 04:40 PM |#3  
xan's Avatar
OP Retired Recognized Developer
Flag Crack-ow
Thanks Meter: 457
 
Donate to Me
More
When you use adbWireless, under big orange button you will see something like: "adb connect 192.168.1.103:5555"
13th November 2010, 04:40 PM |#4  
Senior Member
Thanks Meter: 36
 
More
Quote:
Originally Posted by ravi4chahal

good idea, btw how did you find the ip address? 192.168.1.103... i am not able to send using the same

I think that you will have to find your own ip adress mate
13th November 2010, 04:52 PM |#5  
Junior Member
Flag New Delhi
Thanks Meter: 2
 
More
Quote:
Originally Posted by xan

When you use adbWireless, under big orange button you will see something like: "adb connect 192.168.1.103:5555"

ok thanks, I installed adbWireless and now it is working ... however is there any way of getting rid of the CMD window that pops up while transfer?
13th November 2010, 04:57 PM |#6  
xan's Avatar
OP Retired Recognized Developer
Flag Crack-ow
Thanks Meter: 457
 
Donate to Me
More
hmm..
I think there is. Right click on the shortcut (this in "%APPDATA%\Microsoft\Windows\SendTo")properiti es -> run -> minimised

Delete "pause" line from script, and command line is hidden.
13th November 2010, 04:58 PM |#7  
xan's Avatar
OP Retired Recognized Developer
Flag Crack-ow
Thanks Meter: 457
 
Donate to Me
More
//double, sry
13th November 2010, 05:13 PM |#8  
Daneshm90's Avatar
Retired Recognized Developer
Thanks Meter: 647
 
More
How's this :

Code:
@echo off
echo Where to push the file ? eg (/data/1.apk)
SET /P pat=Enter :
echo Pushing...
adb push "%1" /sdcard/%~n1
adb shell su -c "cp /sdcard/%~n1 %pat%" -root
adb shell rm /sdcard/%~n1
echo Done
Last edited by Daneshm90; 13th November 2010 at 05:21 PM.
13th November 2010, 06:17 PM |#9  
dhiru1602's Avatar
Recognized Contributor / Recognized Developer
Thanks Meter: 13,465
 
More
It works directly for me.

Right click the file, Send to - > Bluetooth Devices.

Select my Phone and press Send.
13th November 2010, 07:45 PM |#10  
peachpuff's Avatar
Senior Member
Thanks Meter: 363
 
More
Very cool tip, made a couple different cmd shortcuts to copy to different part of the sdcard(roms/apps/misc).
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes