nancyp
09-30-2009, 04:27 PM
-- f_AppDir is equal to F:\md It is assigned by the user
v_PFPROG = f_AppDir
v_Path = String.SplitPath(f_AppDir);
-- For some reason this was parsing to \ instead of \md
v_AppJustDir = v_Path.Folder
Debug.Print("f_AppDir="..f_AppDir.."v_AppJustDir="..v_AppJustDir.."\r\nv_Path.Drive=".. v_Path.Drive .."v_Path.Folder = "..v_Path.Folder.."\r\n")
For some reason v_AppJustDir is equal to \ instead of \md
Do I have to change the pathing to have \\ instead of \ for String.SplitPath() to work?
If so, how do I do that? I did not formulate the value of f_AppDir - it was resolved from the user input.
v_PFPROG = f_AppDir
v_Path = String.SplitPath(f_AppDir);
-- For some reason this was parsing to \ instead of \md
v_AppJustDir = v_Path.Folder
Debug.Print("f_AppDir="..f_AppDir.."v_AppJustDir="..v_AppJustDir.."\r\nv_Path.Drive=".. v_Path.Drive .."v_Path.Folder = "..v_Path.Folder.."\r\n")
For some reason v_AppJustDir is equal to \ instead of \md
Do I have to change the pathing to have \\ instead of \ for String.SplitPath() to work?
If so, how do I do that? I did not formulate the value of f_AppDir - it was resolved from the user input.