How to export file step using

I want to export automaticaly a step file using Phyton.
I am trying
folder = rs.browsefolder()
folder = folder+"\name"
rs.command( “_-Export " + str(folder)+”.step"+"_Enter")

i allready see this kind of structure but i cannot realy get a hang of it

Thanks for the help

Hi Stefano,

There seem to be a few errors in your code. Try the following:

import rhinoscriptsyntax as rs

folder = rs.BrowseForFolder()
file = folder + r"\name"
extension = ".step"
rs.Command("_-Export " + file + extension + " _Enter")