From 3cdacffcb21ab194ad19e52b16e390ab25f64926 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Thu, 17 Jan 2002 16:54:01 +0000 Subject: * cygpath.cc (main): Add options to show Desktop and Start Menu's Programs directory for current user or all users. Move bulk of DPWS options outside the getopt case statement. * utils.sgml: Update cygpath section for ADPWS options. --- winsup/utils/utils.sgml | 40 ++++++++++++++++++++++++++-------------- 1 file changed, 26 insertions(+), 14 deletions(-) (limited to 'winsup/utils/utils.sgml') diff --git a/winsup/utils/utils.sgml b/winsup/utils/utils.sgml index 9a4dba327..6569de25d 100644 --- a/winsup/utils/utils.sgml +++ b/winsup/utils/utils.sgml @@ -70,20 +70,21 @@ or if you know what everything is already, just leave this out. cygpath -Usage: cygpath [-p|--path] (-u|--unix)|(-w|--windows [-s|--short-name]) filename - cygpath [-v|--version] - cygpath [-W|--windir|-S|--sysdir] - -a|--absolute output absolute path - -c|--close handle close handle (for use in captured process) - -f|--file file read file for path information - -i|--ignore ignore missing filename argument - -p|--path filename argument is a path - -s|--short-name print Windows short form of filename - -S|--sysdir print Windows system directory - -u|--unix print UNIX form of filename - -v|--version print program version - -w|--windows print Windows form of filename - -W|--windir print Windows directory +Usage: cygpath.exe [-p|--path] (-u|--unix)|(-w|--windows [-s|--short-name]) filename + -a|--absolute output absolute path + -c|--close handle close handle (for use in captured process) + -f|--file file read file for input path information + -i|--ignore ignore missing argument + -p|--path filename argument is a path + -s|--short-name print Windows short form of filename + -u|--unix print Unix form of filename + -v|--version output version information and exit + -w|--windows print Windows form of filename + -A|--allusers use `All Users' instead of current user for -D, -P + -D|--desktop output `Desktop' directory and exit + -P|--smprograms output Start Menu `Programs' directory and exit + -S|--sysdir output system directory and exit + -W|--windir output `Windows' directory and exit The cygpath program is a utility that @@ -124,6 +125,17 @@ done +The capital options +-D, -P, -S, and +-W output directories used by Windows that are not the +same on all systems, for example -S might output +C:\WINNT\SYSTEM32 or C:\WINDOWS\SYSTEM. The -A option +forces use of the "All Users" directories instead of the current user +for the -D and -P options. +On Win9x systems with only a single user, -A has no +effect; -D and -AD would have the +same output. + kill -- cgit v1.2.3