Re: Moving to the Desktop

2005-01-25 Thread Charles Wilson
> Can anybody help with a single keyboard command that would move the > user to the Desktop, usable across all systems? Well, the following THREE commands will work on any system, and then you can easily reference the user's desktop: mkdir /desktop foo=`cygpath -D -w` mount -u [-b|-t] "$foo" /des

Re: Moving to the Desktop

2005-01-24 Thread Igor Pechtchanski
On Mon, 24 Jan 2005, aschwarz1309 wrote: > 'cygpath -d' returns a Dos path. If you are executing in a Cygwin shell > you should retrieve a Unix path. Try: > [snip] Art, The flags recognized by cygpath are case-sensitive. Fergus was talking about the "-D" flag, which does indeed return the locat

Re: Moving to the Desktop

2005-01-24 Thread aschwarz1309
'cygpath -d' returns a Dos path. If you are executing in a Cygwin shell you should retrieve a Unix path. Try: cygpath -u However, to be generic (your question) you have to give cygpath the path to the Desktop - which was your original question. In Win200x, WinXP, and I think WinNT, the deskto

Re: Moving to the Desktop

2005-01-24 Thread Chad J McQuinn
[EMAIL PROTECTED] wrote: What I'm actually after is something like ~> cd `cygpath -D` I think it will work with cd "`cygpath -D`" That's backticks inside double quotes. Windows makes it easier since (I think) quotes are not allowed in filenames. Beyond that, I think a quick and dirty procedure

Re: Moving to the Desktop

2005-01-24 Thread Brian Dessent
[EMAIL PROTECTED] wrote: > What I'm actually after is something like > >~> cd `cygpath -D` > > to move me to the Desktop (but that particular syntax fails). Any ideas? Why not just cd "`cygpath -D`" ? Brian -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem repor