E-Touch 'Download Song' or 'Download Album' Choose Directory Tutorial
One of the many fine features with E-Touch is the ability to download a song from your jukebox to your MP3 player (or USB
stick)! We are going to copy the songs to your portable device by means of a 'batch file', but lets you choose the directory for the download.
Again, I would like to thank E-Touch user
Hitbig for all his leg work on the batch and .vbs files!
Lets see how this is done.
Step 1
Follow the steps in the first tutorial first:
http://www.freeboxjukebox.com/Forum/index.php?topic=2257.0 (http://www.freeboxjukebox.com/Forum/index.php?topic=2257.0)
Once that is done, we need to tweak the 'Download_B.bat' file and we will create a separate file for choosing the drive destination.
Open up the c:\Program Files\E-Touch Jukebox\Download_B.bat file with notepad. Replace all the lines with these below:
@echo off
erase "C:\program files\e-touch jukebox\download\download.bat"
For /F "Tokens=1 Delims=" %%I In ('cscript //nologo BrowseFolder.vbs') Do Set _FolderName=%%I
pushd %_FolderName%
xcopy /Y "C:\program files\e-touch jukebox\download\*.*" /S /E
pushd C:\program files\e-touch jukebox\
del /q download /S
rd /q download /S
md Download
copy "Download_C.bat" "C:\program files\e-touch jukebox\download\Download.bat"
Now save it as 'Download_B.bat'.
Make sure it is saved in the C:\Program Files\E-touch Jukebox folder.
Step 2
Now re-open notepad and copy the lines below:
Const MY_COMPUTER = &H11&
Const WINDOW_HANDLE = 0
Const OPTIONS = 0
Set objShell = CreateObject("Shell.Application")
Set objFolder = objShell.Namespace(MY_COMPUTER)
Set objFolderItem = objFolder.Self
strPath = objFolderItem.Path
Set objShell = CreateObject("Shell.Application")
Set objFolder = objShell.BrowseForFolder _
(WINDOW_HANDLE, "Select a folder:", OPTIONS, strPath)
If objFolder Is Nothing Then
Wscript.Quit
End If
Set objFolderItem = objFolder.Self
objPath = objFolderItem.Path
Wscript.Echo objPath
Now save this in notepad as Browsefolder.vbs in the C:\Program Files\E-touch Jukebox folder.
When you are using E-Touch and select to download a song or album, a selection box will appear:
Select from there where you want to download your music.
*** NOTE *** This seems to work only on WinXP as the window wont show up in WIN7. The window actually does show up in Win7, but it is hidden by the E-Touch interface, so user beware.
Hope this helps! :beer
Fordman