FORUMS
Remove All Ads from XDA

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

1,404 posts
Thanks Meter: 459
 
By xan, Retired Recognized Developer on 13th November 2010, 04:39 PM
Post Reply 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:	892
Size:	12.3 KB
ID:	440360  
The Following User Says Thank You to xan For This Useful Post: [ View ] Gift xan Ad-Free
 
 
13th November 2010, 05: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, 05:40 PM |#3  
xan's Avatar
OP Retired Recognized Developer
Flag Crack-ow
Thanks Meter: 459
 
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, 05: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, 05: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, 05:57 PM |#6  
xan's Avatar
OP Retired Recognized Developer
Flag Crack-ow
Thanks Meter: 459
 
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, 05:58 PM |#7  
xan's Avatar
OP Retired Recognized Developer
Flag Crack-ow
Thanks Meter: 459
 
Donate to Me
More
//double, sry
13th November 2010, 06:13 PM |#8  
Daneshm90's Avatar
Retired Recognized Developer
Thanks Meter: 660
 
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
13th November 2010, 07:17 PM |#9  
dhiru1602's Avatar
Recognized Developer
Thanks Meter: 13,694
 
More
It works directly for me.

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

Select my Phone and press Send.
13th November 2010, 08:45 PM |#10  
peachpuff's Avatar
Senior Member
Thanks Meter: 598
 
More
Very cool tip, made a couple different cmd shortcuts to copy to different part of the sdcard(roms/apps/misc).
13th November 2010, 08:58 PM |#11  
Daneshm90's Avatar
Retired Recognized Developer
Thanks Meter: 660
 
More
Quote:
Originally Posted by peachpuff

Very cool tip, made a couple different cmd shortcuts to copy to different part of the sdcard(roms/apps/misc).

The script i posted above does just that except you don't need multiple shortcuts.

When you run it'll as you where u want the file to go.
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes