The P: drive mapping is used by the users to map to different folder structures within a common share, often referred to as the "personal preference drive". This is in addition to their normal home drive, so unfortunately, I can't use your suggestion.

I need the following:

Stage 1:

1. Read the users current P: drive.
2. Write the results to a text file. Should only be a single line with \\server\share\folder

stage 2:
1. Read the contents of the text file from step 2 above
2. Then do a use command to map a drive.

There must be a file created that is stored in the users home directory.

Thanks