Video Screencast Help
Search Video Help Close Back
to help
Not able to make it to Vision this year? Get a sampling in the Best of Vision on Demand group.

Create Virtual Directory action appends "F:\" to the beginning of the path

Updated: 21 May 2010 | 6 comments
Jennifer Downing's picture
0 0 Votes
Login to vote
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

Bill MacEachern's picture
10
Mar
2009
0 Votes 0
Login to vote

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?

Jennifer Downing's picture
10
Mar
2009
0 Votes 0
Login to vote

%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.

Bill MacEachern's picture
10
Mar
2009
0 Votes 0
Login to vote

Do you have an F: drive on your local system?

Jennifer Downing's picture
10
Mar
2009
0 Votes 0
Login to vote

Yes. My F:\ drive is a mapped network drive on my local system.

Bill MacEachern's picture
10
Mar
2009
0 Votes 0
Login to vote

I'd be curious to see if it still misbehaves if you disconnect the mapping.

Jennifer Downing's picture
13
Mar
2009
0 Votes 0
Login to vote

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