Showing results for 
Search instead for 
Did you mean: 

SaveAs in desired directory.

Valued Contributor
Valued Contributor


Couldn't find the answer anywhere so thought I might share this. I made a DXF generator that saves automatically the flat to a dxf, but I couldn't find how to specify the directory. Finally I found how, it's pretty simple. Textbox2.text being the name of the dxf when saved. I didn't know that you could save files in a new directory just by typing the directory ahead of the file name.

This is just the end of the program.

oDocD.SaveAs("C:\Desireddirectory\" & TextBox2.Text & ".DXF")




Conveyor and industrial equipment designer.
Giving SE a chance.