Symbian
Symbian OS Library

FAQ-0537 Which drive should I install my SDK on?

[Index][spacer] [Previous] [Next]



 

Classification: General Category: SDK
Created: 10/30/2000 Modified: 04/01/2004
Number: FAQ-0537
Platform: ER5

Question:
What does the subst command do and why is it useful to the installation of my SDK?

Answer:
The ER5 SDK must be installed in the root directory of a drive. It is recommended that you create a clean drive using one of the methods below:

1. Use a substituted drive — make a directory and use the subst command to map this to an unused drive letter. For example, to create a virtual drive with the letter e that corresponds to the path c:\erj, you would type the following command at the DOS command prompt: subst e: c:\erj . The computer then treates this virtual (or mapped) drive as a completely separate physical drive. The benefit of this is that the emulator is self contained and is a better simulation of a separate device. Note that the mapped drive and the original folder are one and the same: changing one changes the other.

However, every time you reboot, the mapped drive will not be accessible until you re-execute the subst command. To automate this insert the subst command in your autoexec.bat, or into the startup folder as follows: (Windows NT will not execute batch files in your autoexec.bat unless you include it in the startup folder)

1. Create a .bat file and include the subst command in it (use an application like Notepad and save the file as "all files" but with a .bat extension)
2. Click Start, and then point to Settings.
3. Click Taskbar, and then click the Start Menu Programs tab.
4. Click Add, and then click Browse.
5. Locate the batch file you want to start, and then double-click it.
6. Click Next, and then double-click the StartUp folder.
7. Type the name that you want to see on the StartUp menu, and then click Finish.

On Windows NT and Windows 95/98, the subst command makes the mapped drive visible to all programs immediately (though File Manager or Explorer will not update their available drive list immediately). Pressing F5 (View | Refresh) will make it visible.

2. Use shared drives (This can be slower than the first method) — make a directory, e.g. c:\erj\, select it in the NT4.0 Explorer and use the Sharing... option on the right-click menu to share. Use Tools | Map Network Drive to connect to it. Or from File Manager use Disk | Share As, and then use Disk | Connect Network Drive to connect. Use the Reconnect at logon box to make the share permanent. This method allows you to share your work with others on the network. If you don't want to do this, set the share permissions appropriately.

Either of these approaches will allow you to maintain multiple EPOC SDKs on different drives, and to switch between them on demand.

General help can be found in the SDK under sysdoc/index.html.