madcadder
2007-01-08, 07:53 PM
Just for testing...
I have a routine that starts:
...(SETQ |foldername| (GETSTRING "Enter New Folder Name: "))
(SETQ |path| "M:\\Customer Files\\Inquiry Number\\")
(SETQ |projectname| (STRCAT |path| |foldername|))
(DOS_MKDIR |projectname|)...
Which works beautifully to create that folder.
Now I am going to switch to DOS_REGSETSTR and set the path in the NEWSHEETSET wizard to this project name string.
(DOS_REGSETSTR "HKEY_CURRENT_USER" "Software\\Autodesk\\AutoCAD\\R17.0\\ACAD-5004:409\Profiles\AutoCAD\Dialogs\Sheet Set Wizard" "SheetSetCreatePath" |projectname|)
This does not work because the string is still "\\" and I only need one slash.
I'd swear that I've seen a thread on how to convert "\\" to "\", but I can't find it.
Would someone be so kind as to point me back to that thread?
I have a routine that starts:
...(SETQ |foldername| (GETSTRING "Enter New Folder Name: "))
(SETQ |path| "M:\\Customer Files\\Inquiry Number\\")
(SETQ |projectname| (STRCAT |path| |foldername|))
(DOS_MKDIR |projectname|)...
Which works beautifully to create that folder.
Now I am going to switch to DOS_REGSETSTR and set the path in the NEWSHEETSET wizard to this project name string.
(DOS_REGSETSTR "HKEY_CURRENT_USER" "Software\\Autodesk\\AutoCAD\\R17.0\\ACAD-5004:409\Profiles\AutoCAD\Dialogs\Sheet Set Wizard" "SheetSetCreatePath" |projectname|)
This does not work because the string is still "\\" and I only need one slash.
I'd swear that I've seen a thread on how to convert "\\" to "\", but I can't find it.
Would someone be so kind as to point me back to that thread?