This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Suggestion: relative path for cygstart


Older versions of cygstart did not replace the file names with absolute windows paths. This was better since the ShellExecute function will search the path for a command. And, if it doesn't find it in the path, it will look in the registry. So you can 'cygstart calc', 'cygstart winword', 'cygstart services.msc', etc.

This can be accomplished by changing
 CCP_POSIX_TO_WIN_W
to
 CCP_POSIX_TO_WIN_W|CCP_RELATIVE
the two places it appears.

Interestingly, ShellExecute also accepts certain non-filename strings for "shell namespace objects".

For example:

Drives (My computer)
::{20D04FE0-3AEA-1069-A2D8-08002B30309D}

Control Panel
::{20D04FE0-3AEA-1069-A2D8-08002B30309D}\::{21EC2020-3AEA-1069-A2DD-08002B30309D}

You can try these out with the Run command on the Windows start menu or the CMD.EXE START command.

This last one doesn't work in cygstart even after the CCP_RELATIVE change is made. This is not because of any bug in cygstart, though, so I'll save it for another email.

Ken Hirsch


-- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]