| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
| From: | "Patrick J. LoPresti" <patl AT users DOT sourceforge DOT net> |
| To: | cygwin AT cygwin DOT com |
| Subject: | "The system cannot find the file specified" error in /etc/profile |
| Date: | 20 Aug 2003 15:11:46 -0400 |
| Message-ID: | <s5gn0e4ywi5.fsf@egghead.curl.com> |
| Lines: | 25 |
| User-Agent: | Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 |
| MIME-Version: | 1.0 |
On a newly built Windows XP system with no printers configured, the
registry key:
HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows\Device
...does not exist. This causes /etc/profile to emit this message
every time it runs:
Error (2): The system cannot find the file specified.
One possible fix is appended.
- Pat
--- profile.orig 2003-08-20 15:01:13.000000000 -0400
+++ profile 2003-08-20 15:06:27.000000000 -0400
@@ -123,7 +123,7 @@
# Define default printer
case "`uname -s`" in
CYGWIN_NT-*)
- PRINTER="`regtool get '\user\Software\Microsoft\Windows NT\CurrentVersion\Windows\Device' |
+ PRINTER="`regtool -q get '\user\Software\Microsoft\Windows NT\CurrentVersion\Windows\Device' |
sed 's/,.*$//'`"
;;
CYGWIN_9?-*)
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |