Create Virtual Directory action appends "F:\" to the beginning of the path
Updated: 21 May 2010 | 6 comments
This issue has been solved. See solution.
I am trying to Create a Virtual Directory using the Wise Script Package Editor and use %MAINDIR% as the "Virtual Directory Path" setting. When I do this, it appends a "F:\" to the beginning of my path. The only way I can get this to go away is by hard codig the path with a drive letter (C:\...), but I want to allow the user to select the destination directory before I create the virtual directory and map the virtual directory to the destination directory selected.
Discussion Filed Under:
Comments
I'm not much of a WiseScript guy, but does %MAINLINE% always hold this value with F: or does it get redefined at some point? Do you have an F: drive on your local system?
%MAINDIR% never holds the value of "F:\" prior to compile time. %MAINDIR% is defaulted to "C:\Program Files\..." in my script and then is changed to what the user selects as there destination directory at runtime (which could be "F:\"). However, the "F:\" is being appended to the beginning of the path in my script, before I even compile so it is not happening at runtime.
Do you have an F: drive on your local system?
Yes. My F:\ drive is a mapped network drive on my local system.
I'd be curious to see if it still misbehaves if you disconnect the mapping.
It did still cause problems when I disconnected my F:\ drive. It turns out this is a known issue. I found it in the knowledgebase, Article#36096
Would you like to reply?
Login or Register to post your comment.