cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

web\link and workingdirectory problem :-(

vpapa
1-Visitor

web\link and workingdirectory problem :-(

hi all,
I have a little problem with weblink.
In fact I cannot properly set the working folder.

Whether you use currentScriptObject.pwlDirectoryCurrentSet ( "c: \ temp")
that currentProeSession.ChangeDirectory ( "c: \ temp"),
example:

MsgBox("This is the current Working Directory: " & vbCrLf &
session.GetCurrentDirectory)
'Change the Working Directory
session.ChangeDirectory("c:\temp")
'Show the updated Working Directory
MsgBox("This is the updated Working Directory: " & vbCrLf &
session.GetCurrentDirectory) <-- this value is ok !!!!

but, soon after I open the menu File \ Open, proe, however, I view the old
working folder !!!.


It a known bug or am I mistaken something?
Thank you very much,
Vincenzo.



--
A Pastiera Adda essere Aveta e Zucosa (Dario Chiummo)

This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.
1 REPLY 1

Use folder names with a double \:

session.ChangeDirectory("c:\temp")

Andreas

__________________________________

Andreas Hellmann
MCAD Services Pro/E & Pro/E customization
Rudolf-Diesel-Str. 6
D-65439 Floersheim / Germany

phone: +49 6145 598296
mail: -

Announcements


Top Tags