[comp.sys.ibm.pc] switchar '\' to '/'

martin@zeus.hf.intel.com (Martin Wilde) (10/29/88)

I am having problems using the posted version utility "switchar.com".

What I need to do is tell dos to convert the '\' to '/'.  The reason
for this is that I have lots of source that runs on unix with the
path names for include files.  I would not like to have to convert
the forward slash to the dos backslash.  I tried the switchar program
and it did not make a difference.

I know that this question has been posted to the net before, but I
could not find anything in my archives about it.  

I would appreciate any help that I could get.....

Thanks in advance

                          
                  _/_          |
 ______  __.  __  /  o ____    |  textronix!reed!littlei!zeus:martin
/ / / <_(_/|_/ (_<__<_/ / <    |

jxh@cup.portal.com (Jim - Hickstein) (11/01/88)

While we're on the subject of the "switchar" feature:

I am trying to use the MKS Toolkit in the DOS 3X Box under MS OS/2 1.1
(SDK 1.05).  The "switch" progam that comes with it says, under BUGS:
"Uses an undocumented DOS call."  It does not have the desired effect when
run in this environment.  Is it possible that the OS/2 "box" does not
implement this feature?  I surmise that this is true, but if anyone out
there knows anything about it, either to corroborate or refute my allegation,
PLEASE speak up!  This is most annoying, and if I cannot hope to correct it,
I would at least like to know with certainty that there is no hope.  Thanks.

-Jim Hickstein
jxh@cup.portal.com
...!sun!portal!cup.portal.com!jxh

sullivan@marge.math.binghamton.edu (fred sullivan) (11/03/88)

In article <324@zeus.hf.intel.com> martin@zeus.hf.intel.com (Martin Wilde) writes:
>
>I am having problems using the posted version utility "switchar.com".
>
>What I need to do is tell dos to convert the '\' to '/'.  The reason
>for this is that I have lots of source that runs on unix with the
>path names for include files.  I would not like to have to convert
>the forward slash to the dos backslash.  I tried the switchar program
>and it did not make a difference.
>
Perhaps you have a braindead compiler which is checking the
file name before attempting to open it.  With Turbo C, anyway,
#include <sys/stat.h> is fine if the switch character is set to
"-".

Fred Sullivan				SUNY at Binghamton
Dept. Math. Sciences			Binghamton, NY 13903
					sullivan@marge.math.binghamton.edu
First you make a roux!