5,598,779 Members 35,921 Now Online
XDA Developers Android and Mobile Development Forum

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

Tip us?
 
xan
Old
(Last edited by xan; 16th November 2010 at 01:02 AM.)
#1  
xan's Avatar
Recognized Developer - OP
Thanks Meter 454
Posts: 1,399
Join Date: May 2006
Location: Crack-ow

 
DONATE TO ME
Default [REF] Making use of Windows "Send to" menu

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:	861
Size:	12.3 KB
ID:	440360  
Feeling like translating something? here you go
Voltage Control Lite/Extreme 4.9.8 *Siyah support + Profiles + Widget + CPU history*: -> Take control of your OC/UV for Galaxy S OC kernels. Android Market / YAAM
ExTweaks / ExTweaks Plus 0.20 *Universal Tweaks Interface frontend for Siyah kernel*

14apr: [Froyo]Insane OC/UV kernel K13E
What is your OC result?
 
ravi4chahal
Old
#2  
Junior Member
Thanks Meter 2
Posts: 25
Join Date: Aug 2010
Location: New Delhi
good idea, btw how did you find the ip address? 192.168.1.103... i am not able to send using the same
 
xan
Old
#3  
xan's Avatar
Recognized Developer - OP
Thanks Meter 454
Posts: 1,399
Join Date: May 2006
Location: Crack-ow

 
DONATE TO ME
When you use adbWireless, under big orange button you will see something like: "adb connect 192.168.1.103:5555"
Feeling like translating something? here you go
Voltage Control Lite/Extreme 4.9.8 *Siyah support + Profiles + Widget + CPU history*: -> Take control of your OC/UV for Galaxy S OC kernels. Android Market / YAAM
ExTweaks / ExTweaks Plus 0.20 *Universal Tweaks Interface frontend for Siyah kernel*

14apr: [Froyo]Insane OC/UV kernel K13E
What is your OC result?
 
fane1
Old
#4  
Senior Member
Thanks Meter 35
Posts: 310
Join Date: Dec 2008
Quote:
Originally Posted by ravi4chahal View Post
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
 
ravi4chahal
Old
#5  
Junior Member
Thanks Meter 2
Posts: 25
Join Date: Aug 2010
Location: New Delhi
Quote:
Originally Posted by xan View Post
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?
 
xan
Old
#6  
xan's Avatar
Recognized Developer - OP
Thanks Meter 454
Posts: 1,399
Join Date: May 2006
Location: Crack-ow

 
DONATE TO ME
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.
Feeling like translating something? here you go
Voltage Control Lite/Extreme 4.9.8 *Siyah support + Profiles + Widget + CPU history*: -> Take control of your OC/UV for Galaxy S OC kernels. Android Market / YAAM
ExTweaks / ExTweaks Plus 0.20 *Universal Tweaks Interface frontend for Siyah kernel*

14apr: [Froyo]Insane OC/UV kernel K13E
What is your OC result?
 
xan
Old
#7  
xan's Avatar
Recognized Developer - OP
Thanks Meter 454
Posts: 1,399
Join Date: May 2006
Location: Crack-ow

 
DONATE TO ME
//double, sry
Feeling like translating something? here you go
Voltage Control Lite/Extreme 4.9.8 *Siyah support + Profiles + Widget + CPU history*: -> Take control of your OC/UV for Galaxy S OC kernels. Android Market / YAAM
ExTweaks / ExTweaks Plus 0.20 *Universal Tweaks Interface frontend for Siyah kernel*

14apr: [Froyo]Insane OC/UV kernel K13E
What is your OC result?
 
Daneshm90
Old
(Last edited by Daneshm90; 13th November 2010 at 05:21 PM.)
#8  
Daneshm90's Avatar
Recognized Developer
Thanks Meter 614
Posts: 3,309
Join Date: Jun 2009
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
Scripts : Recovery Customizer Link Apk Manager Link Auto Deodexer Link Backup Manager Link Update.zip Modifier/Creator Link
 
dhiru1602
Old
#9  
dhiru1602's Avatar
Recognized Contributor / Recognized Developer
Thanks Meter 10661
Posts: 1,515
Join Date: Aug 2010

 
DONATE TO ME
It works directly for me.

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

Select my Phone and press Send.
 
peachpuff
Old
#10  
peachpuff's Avatar
Senior Member
Thanks Meter 288
Posts: 1,461
Join Date: Aug 2010
Very cool tip, made a couple different cmd shortcuts to copy to different part of the sdcard(roms/apps/misc).
Captivate + cm7
HP Touchpad + cm9
SGS2 + cm9
Galaxy Nexus + CNA
LG Nexus 4 + AOKP
LG Nexus 5

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


XDA PORTAL POSTS

Say Goodbye to Holo Blue Once and for All

When Google released Android 4.4 KitKat back in October of last year, they changed quite a bit … more

Sony Z Ultra Google Play Edition Receives Bluetooth Certification for Android 4.4.3

You may recall that a few days ago, Sprint jumped the gun … more

Easily Configure Xposed Module Projects in Eclipse

XDA Recognized Developer rovo89‘s innovative and versatile Xposed Framework allows … more

Android Control Center Becomes Quick Control Panel, Brings Host of New Features

You may recall that back in August of last year, we talked … more