Powershell 将音乐复制到Ipod

Powershell 将音乐复制到Ipod,powershell,itunes,powershell-2.0,ipod,Powershell,Itunes,Powershell 2.0,Ipod,我想知道是否有办法使用powershell将音乐复制到ipod 如果需要的话,我不介意在我的电脑上安装itunes。 我不想将我的ipod与itunes同步,也不想将文件添加到itunes库中 我现在复制音乐的方式是,我只需选择包含我想要的音乐的文件夹,然后将其拖到itunes中的ipod上。这样它就不会将音乐添加到itunes库中。我相信哈尔·罗滕伯格在这里也做了类似的事情。 我相信哈尔·罗滕伯格在这里也做了类似的事情。 我设法弄明白了 $IpodName = "type the name o

我想知道是否有办法使用powershell将音乐复制到ipod

如果需要的话,我不介意在我的电脑上安装itunes。 我不想将我的ipod与itunes同步,也不想将文件添加到itunes库中


我现在复制音乐的方式是,我只需选择包含我想要的音乐的文件夹,然后将其拖到itunes中的ipod上。这样它就不会将音乐添加到itunes库中。

我相信哈尔·罗滕伯格在这里也做了类似的事情。
我相信哈尔·罗滕伯格在这里也做了类似的事情。
我设法弄明白了

$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

我设法弄明白了

$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

不,这要求您的ipod配置为与pc同步,我自己解决了这个问题。谢谢你提供的信息。不,这需要你的ipod配置为与你的pc同步,我自己解决了这个问题。谢谢你的信息。