delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/12/11/17:29:53

X-Spam-Check-By: sourceware.org
Message-ID: <31b7d2790612111429n286c3dc2nabf3aca4a4fc7a30@mail.gmail.com>
Date: Mon, 11 Dec 2006 22:29:29 +0000
From: "DePriest, Jason R." <jrdepriest AT gmail DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: cygstart getting The specified file was not found
In-Reply-To: <cff6fd558950e.457d76ca@shaw.ca>
MIME-Version: 1.0
References: <cff6fd558950e DOT 457d76ca AT shaw DOT ca>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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

On 12/11/06, ERIC HO  wrote:
> I was able to use Windows Explorer to open the file by double clicking the file. I was able to use cygstart open the file with full path. The problem is with all file type. I can do a cygstart http://www.cygwin.com/ with no problem. The result from:
>  strace cygstart hello.txt |grep hello.txt
> is as below:
>     20   11399 [main] cygstart 732 build_argv: argv[1] = 'hello.txt'
>   202   12600 [main] cygstart 732 normalize_posix_path: src hello.txt
>    46   12686 [main] cygstart 732 normalize_posix_path: /cygdrive/c/WINDOWS/system32/hello.txt = normalize_posix_path (hello.txt)
>    22   12708 [main] cygstart 732 mount_info::conv_to_win32_path: conv_to_win32_path (/cygdrive/c/WINDOWS/system32/hello.txt)

Are you running the command from inside your C:\WINDOWS\system32 directory?

When I run the command, it checks my current directory before looking
anywhere else.

File does not exist:
$ strace cygstart hello.txt | grep hello.txt
   48   30028 [main] cygstart 444 build_argv: argv[1] = 'hello.txt'
  445   32605 [main] cygstart 444 normalize_posix_path: src hello.txt
   52   32750 [main] cygstart 444 normalize_posix_path: /hello.txt =
normalize_posix_path (hello.txt)
   49   32799 [main] cygstart 444 mount_info::conv_to_win32_path:
conv_to_win32_path (/hello.txt)
   47   32903 [main] cygstart 444 mount_info::conv_to_win32_path:
src_path /hello.txt, dst C:\cygwin\hello.txt, flags 0xA, rc 0
  223   33126 [main] cygstart 444 symlink_info::check:
GetFileAttributes (C:\cygwin\hello.txt) failed
  106   33289 [main] cygstart 444 symlink_info::check:
GetFileAttributes (C:\cygwin\hello.txt.lnk) failed
   46   33387 [main] cygstart 444 symlink_info::check: 0 =
symlink.check (C:\cygwin\hello.txt, 0x22C040) (0x80000A)
   54   33441 [main] cygstart 444 path_conv::check:
this->path(C:\cygwin\hello.txt), has_acls(1)
Unable to start 'hello.txt': The specified file was not found.

File does exist:
$ strace cygstart hello.txt | grep hello.txt
   47   30081 [main] cygstart 3992 build_argv: argv[1] = 'hello.txt'
  443   32711 [main] cygstart 3992 normalize_posix_path: src hello.txt
   47   32853 [main] cygstart 3992 normalize_posix_path: /hello.txt =
normalize_posix_path (hello.txt)
   48   32901 [main] cygstart 3992 mount_info::conv_to_win32_path:
conv_to_win32_path (/hello.txt)
   48   33006 [main] cygstart 3992 mount_info::conv_to_win32_path:
src_path /hello.txt, dst C:\cygwin\hello.txt, flags 0xA, rc 0
   51   33251 [main] cygstart 3992 symlink_info::check: 0 =
symlink.check (C:\cygwin\hello.txt, 0x22C040) (0x80000A)
   58   33309 [main] cygstart 3992 path_conv::check:
this->path(C:\cygwin\hello.txt), has_acls(1)

Neither one looks at my Windows system32 directory.

-Jason

--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019