using start app and MY COMPUTER
using start app and MY COMPUTER
(OP)
so im wanting to create a button to open a session of My Comp and go to a designated folder how do i go about doing this ive seen one that opens explorer bu i hate explorer
if everyone helps everybody the world will be a better place





RE: using start app and MY COMPUTER
(startapp "explorer c:\\program files\\acad2000")
the above line will open in a new window (not explorer) the folder of C:\Program Files\Acad2000
You can change the path to any folder on your computer, including network drives and internet sites.
To connect to a shared resource on a network computer where the drive is not mapped locally use this syntax:
(startapp "explorer \\\\computername\\shareddrive\\folderpath")
For example:
(startapp "explorer \\\\Server\\C\\winnt\\profiles\\all users\\desktop")
will pop up a window of the shared desktop of an NT server
You can connect to internet sites as well....
(startapp "explorer http:\\\\www.autodesk.com")
Remember that when the resource you are attempting to connect to has a backslash, you must double it to get the desired result. i.e. http:\\www.autodesk.com = http:\\\\www.autodesk.com
and
\\Server\C\Winnt\profiles\all users\desktop =
\\\\Server\\C\\Winnt\\profiles\\all users\\desktop
RE: using start app and MY COMPUTER
(startapp "explorer C:\\Documents and Settings\\rreese\\custom2")
I have tried with and without a ^c^c
what am i doing wrong
if everyone helps everybody the world will be a better place
RE: using start app and MY COMPUTER
Does explorer open?
Does a window open showing the root drive?
Does nothing happen?
If explorer opens, then there is a problem with the path you have specified.
If a window opens in the root of drive C, then the path shown is not accessable.
If nothing happens, then there is a problem with the syntax of the macro.
It does appears as though your macro is correct though.
RE: using start app and MY COMPUTER
1st atempt using above macro and yes the pat does exist
Command: (startapp "explorer C:*Cancel*
i had to cancel cause it wasnt doing anything nothing i mean it would sit there till the end of time and the i rememberd what i learned back in acad 2k when i started writing button macros
\ is equal to a pause if you need to specify a path then place / instead of\ well this was the result
Command: (startapp "explorer C:/Documents and Settings/rreese/custom2") 33
Command: (startapp "explorer C:/Documents and Settings/rreese/custom2") 33
wherethe 33 comes from i have no idea??
and it tells me its not a valid path ???yea right would it or could it have anything to do if this path was in the support files search path hmmm
if everyone helps everybody the world will be a better place
RE: using start app and MY COMPUTER
if everyone helps everybody the world will be a better place
RE: using start app and MY COMPUTER
??
what to do ??
if everyone helps everybody the world will be a better place
RE: using start app and MY COMPUTER
;starts windows explorer in the current drawing directory.
(defun c:CFOLDER ()
(startapp "explorer" (strcat "/e, "(getvar "dwgprefix")))
(princ)
)
and it works :))
but i hate Windows Explorer any body know how to get it to use my comp style folder opening
if everyone helps everybody the world will be a better place
RE: using start app and MY COMPUTER
Try this exact macro and let me know the result.
(startapp "explorer C:\\Docume~1\\rreese\\custom2")
RE: using start app and MY COMPUTER
(startapp "explorer C:\\Docume~1\\rreese\\custom2")
did a copy n paste of the above now you wont believe this
pasted it in the macro area right applied and oked to the button customizing
tried it it stoped just as before so i was going to look at it again and this is what was in the macro area
(startapp "explorer C:\\Docume~1\\rreese\\custom2")^M;^M;
but what i showed you in the begining was exactly what i copied and pasted out of this thread
but after removing the ^M;^M; it still did not work but if it helps any im on win 2k duno if that will matter
if everyone helps everybody the world will be a better place
RE: using start app and MY COMPUTER
RE: using start app and MY COMPUTER
Cause i keep getting this
Command: (startapp "explorer C:
on the command line
if everyone helps everybody the world will be a better place
RE: using start app and MY COMPUTER
You want to use a button on a toolbar to open a drawing.
Solution
Create the custom button.
Right-click the button.
For the button name, enter Open Drawing ....
In the Help section, enter Opens drawing ....
For the macro, enter the following string:
^c^c_fileopen;"c:/program files/autocad/autocad2000/sample/colorwh.dwg"
Where "c:/program files/autocad/autocad2000/sample/colorwh.dwg" is the path to your drawing.
Note: Folder names are separated by forward slashes (/) not backslashes (\), and the path is enclosed in quotes because it contains spaces.
Issue
DIESEL (the language the menus and toolbar macros use) stops executing when it encounters a backslash (\). This can be a problem when writing a toolbar macro that includes the AutoLISP Newline control character \n. For example:
(setq a (getpoint "\nPick the point "))
Solution
Use the TERPRI function in AutoLISP to create a new line without using a backslash to avoid problems with DIESEL toolbar macros.
This is how the TERPRI function would appear in AutoLISP:
(terpri) (setq a (getpoint "Pick the point "))
Note: See related topics for more information about creating a toolbar macro.
if everyone helps everybody the world will be a better place
RE: using start app and MY COMPUTER
RE: using start app and MY COMPUTER
Command: (startapp "explorer C:"//"Docume~1"//"rreese"//"custom2")
nil
if everyone helps everybody the world will be a better place
RE: using start app and MY COMPUTER
i figured it out here is the macro
_browser;"C:/Documents and Settings/rreese/custom2"
explorer i could not get it to go to that path and i dont understand it but this works
if everyone helps everybody the world will be a better place
RE: using start app and MY COMPUTER
RE: using start app and MY COMPUTER
if everyone helps everybody the world will be a better place