2012-08-05 42 views
1

我想知道是否有方法使用PowerShell將音樂複製到iPod。將音樂複製到iPod上

如果需要,我不介意在我的電腦上安裝iTunes。 我不想將iTunes與iPod同步,或將文件添加到iTunes庫。

我現在複製音樂的方式是,我只需選擇我想要的音樂文件夾,然後將其拖動到iTunes中的iPod上即可。這樣它不會將音樂添加到iTunes庫。

回答

4

我設法弄清楚

$IpodName = "type the name of your ipod hear as it apears in itunes" 
$SongToCopy = 'c:\tools\test\04.mp3' 

#Create a com object to talk to Itunes and List the Librarys 
    $iTunes = New-Object -ComObject iTunes.Application 
    $LibrarySource = $iTunes.sources 

$IpodSource = $LibrarySource.ItemByName($IpodName) 

$IpodPlaylists = $IpodSource.Playlists 
$IpodPlaylist = $IpodPlaylists.ItemByName($IpodName) 
$IpodTracks = $IpodPlaylist.Tracks 

$IpodTracks.Count 

$IpodPlaylist.AddFile($SongToCopy) 

$IpodTracks.Count 
0

我相信hal rottenberg在這裏做了類似的事情。 http://halr9000.com/article/480

+0

沒有,需要你的iPod進行配置與您的PC爲合成,我已經解決了這個問題,我的自我。謝謝(你的)信息。 – justinf 2012-08-06 12:59:39

相關問題