Rockbox General > Rockbox General Discussion
Symbolic links for simulator (was Re: Using Rockbox Simulator)
BdN3504:
I have a question concerning the sim which has nothing to do with the OP's problem but i found the title rather fitting, so i decided to post in this thread.
Currently the sim plays files which i put on the simdisk. But the sim is also able to read playlists. i find it annoying having to copy files to the simdisk, rather than to have a playlist point to the files i want to play. is it not possible to make the sim access files outside the simdisk folder? Or is it possible to create shortcuts to files and just place the shortcuts into the simdisk directory?
i have come up with this concern because i code wps's for a lot of different targets, and copying music files to each simdisk folder takes up a lot of diskspace...
another benefit of this would be to actually make the simulator a useful fileplayer on a pc, but that's just a side effect...
AlexP:
Please don't hijack threads just because the title is vaguely related to your query. I have split your post out and given it a better title.
In answer, you can use symbolic links to play files exterior to the sim directory (as as far as the sim is concerned they are not exterior). I believe something like symlinks exist for Windows, but you'll have to have a google for them.
cool_walking_:
I think they're more like hard links than symlinks, but I think they're called "Junction points".
GodEater:
...and the systinternals "junction.exe" works just fine for creating them.
So from your simulators simdisk directory, doing something like :
--- Code: ---junction music c:\mymusic
--- End code ---
Will create a junction in the simdisk directory which is pointing to the contents of c:\mymusic - saving you having to copy it all.
BdN3504:
If you want to create a shortcut to a drive under WinXP there are some very easy steps you have to follow:
* Open a Command Prompt using "Run..." in the Start Menu and type in "cmd"
* Go to the directory where you want to create your shortcut (i.e. the Simulator folder) (you can simply open an explorer window, navigate to the directory and then drag and drop it onto the command prompt. then simply press "home" type "cd" and a space)
* Make a Directory using "md" and give it the name of your shortcut ("md music", "md hdd", whatever suits you) in the commandprompt
* Now type "mountvol" in the commandprompt
* Decide which drive you want to create the shortcut to
* Copy the first line of that drive (right-click into the command prompt choose "mark" and select the line beginning with "\\?\..." above your chosen driveletter)
* Last step: type "mountvol [the name of the folder you created with md] \\?\..." and you're done!
* To remove this shortcut, simply type "mountvol" again. you will see the location you have created just now under the drive you have chosen. copy the line of the new location (i.e. \simdisk\*yourfolder*\) type "mountvol ", paste the location and add " /d"
Shall i add this to the UISim wiki entry?
Navigation
[0] Message Index
[#] Next page
Go to full version