And I notice that you don't have quotes around the path on the use commands. When i test here for example, this throws an error

Code:

use p: \\server\share



And the following works fine

Code:

use p: "\\server\share"