Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TugboatEng on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

ANSYS: Change working directory while executing a macro

Status
Not open for further replies.

koolraj

Mechanical
Joined
Dec 31, 2009
Messages
10
Location
IN
Hi all,
I have a macro which creates a new folder in the current working directory while running it. Now I what I want to do is, as soon as the macro creates the new folder in the working directory, all the further files including .db and .rst should be saved to this new folder. I tried the save command but it is not working.

Any help is appreciated.
Thanks.
 
Hi,

Are you using the "SAVE" -command? Are you specifying the directory in the third argument to that function call? I've sometimes experienced that the OS is not fast enough so that the newly created dir is not available. Try issuing a "/WAIT,.25" before saving.

Hope this helps

/petb
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top