Tried the above with my iPhone and it didnt work.
What you can do is download iPhone Explorer which allows you to view all files on the device.
Once installed you are prompted to select the root directory you want to view. I selected the option already selected to the left (as the one below only allowed you to view the files you could already access without it) Once you click next you are presented with all your files. On the left hand side in the folder view if you expand the iTunes_Control folder, select Music and click and drag all the folders in there to where you keep your music. Now within those folders are the music files on your iPod but they wont be named as you know it (i.e they will be called ZXZF or some thing like that) Dont worry bout working out what songs they are as iTunes will pick it up. Once it has finished copying, within iTunes if you click file at the top then select Add Folder to Library. Simply navigate to the folder location where they were all copied to and select them. and once it has finished adding all the files in the folders, The songs will appear as the regular names but without sorting them into the playlists they were in and a few minor details like play count and things like that and this will save having to pay good money for software that bassically does the same job as this.