in reply to Re^4: Trouble using a Win32 file path in an array
in thread Trouble using a Win32 file path in an array

Ikegami, I found your comments helpful.

As far as WinNT and W2K, I will plead probably too ignorant to have even tried using forward slash on the command line. I don't remember forward slash working but that may be because I just never tried as part of usual practice.

Maybe you can shed some light on the following...I am not sure why your "type" command works and mine doesn't! This doesn't appear to be a "syntax error". "cat" works on my system, but I have cygwin installed. I don't know why "type" can't find the file specified, but yet "cat" can.

C:/TEMP/comment.txt #I know from experience that I can open this #filepath with Perl on Win XP and read it. C:\Projects>type C:/TEMP/comment.txt The syntax of the command is incorrect. C:\Projects>type "C:/TEMP/comment.txt" #doesn't work The system cannot find the file specified. #my command above looks similar to yours, but doesn't appear #to work for unknown reasons...your command works.... >type "c:/documents and settings/ikegami/bar.txt" foo C:\Projects>type 'C:/TEMP/comment.txt' #did work either The syntax of the command is incorrect. #but I didn't expect it to. C:\Projects>cat C:/TEMP/comment.txt (this works)

Replies are listed 'Best First'.
Re^6: Trouble using a Win32 file path in an array
by ikegami (Patriarch) on Oct 01, 2009 at 03:28 UTC

    Are you getting getting the builtin type or something else?

    Update: It's messed!

    C:\Documents and Settings\ikegami>copy nul "c:/documents and settings/ +ikegami/bar.txt" C:\Documents and Settings\ikegami>type "C:/documents and settings/ikeg +ami/bar.txt" C:\Documents and Settings\ikegami>cd\ C:\>type "C:/documents and settings/ikegami/bar.txt" The system cannot find the file specified.