I am having trouble getting the SUBST command to work. I have tried a few varients to see if it works however I can't get the folder to map in AutoIT. I can run the SUBST command manually and it works fine. I am on Windows 7. Anyone have advice or a solution to this?
$command = "subst f: c:\OfflineCAD"
;Runwait(@ComSpec & " /c " & $command, "")
;Run(@ComSpec & " /c " & $command, "", @SW_HIDE)
ShellExecute(@ComSpec & " /k " & $command, @UserProfileDir, @SW_SHOW)