Announcement

Collapse
No announcement yet.

NT SUBST.EXE utility

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • NT SUBST.EXE utility

    In NT, you can use SUBST to reference a Drive to a UNC path.

    With Windows 95 and 98 you can't. I'm wanting to write a utility
    that will reference a drive letter to a UNC Path.

    I'm not taking about Mapping, because the path isn't a sharename.

    It's a directory within a sharename.

    ------------------
    -Greg

    [This message has been edited by Gregery D Engle (edited July 27, 2001).]
    -Greg
    [email protected]
    MCP,MCSA,MCSE,MCSD

  • #2
    Originally posted by Gregery D Engle:
    In IN, you can use SUBST to reference a Drive to a UNC path.

    With Windows 95 and 98 you can't. I'm wanting to write a utility
    that will reference a drive letter to a UNC Path.

    I'm not taking about Mapping, because the path isn't a sharename.

    It's a directory within a sharename.

    SUBST works fine with W95/98 in my experience.

    To confirm I just did a SUBST T: \\MyServer\Sharename\SubDir on WIn98 and it worked fine.

    I often use it on a development machine to simulate network applications.

    What is the problem?




    ------------------
    Check out my free software at http://www.lexacorp.com.pg(all written in PB/DLL)

    Comment


    • #3
      I've another question:
      Does someone now, how to write a Utility, wich does the same as
      "mountvol.exe" (only avaible under Win2K, I think)?

      ------------------
      E-Mail (home): mailto:[email protected][email protected]</A>
      E-Mail (work): mailto:[email protected][email protected]</A>

      Comment


      • #4
        I always get PATH NOT FOUND when I try:

        Subst k: \\servername\sharename\subdir

        This machine was a Win98 Second Edition. I will try an win95
        machine too.

        I've also tried coping the subst.exe from nt4 and win2k and it
        still doesn't work.


        ------------------
        -Greg

        [This message has been edited by Gregery D Engle (edited July 27, 2001).]
        -Greg
        [email protected]
        MCP,MCSA,MCSE,MCSD

        Comment


        • #5
          Originally posted by Gregery D Engle:
          I always get PATH NOT FOUND when I try:

          Subst k: \\servername\sharename\subdir

          This machine was a Win98 Second Edition. I will try an win95
          machine too.

          I've also tried coping the subst.exe from nt4 and win2k and it
          still doesn't work.

          If you have spaces in the Path, you need to set it in quotes (")



          ------------------
          E-Mail (home): mailto:[email protected][email protected]</A>
          E-Mail (work): mailto:[email protected][email protected]</A>

          Comment


          • #6
            I always get PATH NOT FOUND when I try:
            Subst k: \\servername\sharename\subdir
            Are you sure the share exists?

            Can you navigate to it from the Network Neighborhood?

            Did you actually log in to windows? (if the initial blue login screen is 'canceled' by the user, or doesn't display at all, some networking stuff doesn't get started

            Does NET USE work on the share? (NET USE K: \\servername\sharename)

            FWIW, PowerBASIC will happily use UNC paths when interacting with files.



            ------------------
            [email protected]
            http://www.northnet.org/bdurland
            Real programmers use a magnetized needle and a steady hand

            Comment


            • #7
              Sven,

              Share name / subdir doesn't have spaces in it.

              Bud,

              I can do a NET USE on the sharename, when I try to do a SUBST
              on the drive that I just net used I get something to this
              extent:

              "Can not subst a network drive"

              in NT4.0 and Win2k it works perfectly, 98 and 95 it doesn't.

              Any more ideas?

              ------------------
              -Greg

              [This message has been edited by Gregery D Engle (edited July 27, 2001).]
              -Greg
              [email protected]
              MCP,MCSA,MCSE,MCSD

              Comment

              Working...
              X