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.