Defining network paths.

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jasper Recto

    #1

    Defining network paths.

    I have a statement that defines a network path"

    ReportPath = "L:\Informa tion Technology\Publ ic\Report Procedures\"

    When I run the program, it tells me that it can't recognize the argument:
    'Technology\Pub lic\Report'
    Why does it not notice the "Informatio n" and "Procedures " part of the path?
    What do I need to put between the 2 words to recognize this path?


  • Bogdan Lachendro

    #2
    Re: Defining network paths.

    On 11/6/2003 4:23 PM, Jasper Recto wrote:
    [color=blue]
    > I have a statement that defines a network path"
    >
    > ReportPath = "L:\Informa tion Technology\Publ ic\Report Procedures\"
    >
    > When I run the program, it tells me that it can't recognize the argument:
    > 'Technology\Pub lic\Report'
    > Why does it not notice the "Informatio n" and "Procedures " part of the path?
    > What do I need to put between the 2 words to recognize this path?[/color]
    try:
    ReportPath = "\"L:\Informati on Technology\Publ ic\Report Procedures\""
    or
    ReportPath = "\"L:\\Informat ion Technology\\Pub lic\\Report Procedures\\\""

    Comment

    • Jasper Recto

      #3
      Re: Defining network paths.

      Didn't work,
      any other suggestions?

      Thanks,
      Jasper
      "Bogdan Lachendro" <lachu@no-spam.icslab.agh .edu.pl> wrote in message
      news:uDQGfqHpDH A.2232@TK2MSFTN GP09.phx.gbl...[color=blue]
      > On 11/6/2003 4:23 PM, Jasper Recto wrote:
      >[color=green]
      > > I have a statement that defines a network path"
      > >
      > > ReportPath = "L:\Informa tion Technology\Publ ic\Report Procedures\"
      > >
      > > When I run the program, it tells me that it can't recognize the[/color][/color]
      argument:[color=blue][color=green]
      > > 'Technology\Pub lic\Report'
      > > Why does it not notice the "Informatio n" and "Procedures " part of the[/color][/color]
      path?[color=blue][color=green]
      > > What do I need to put between the 2 words to recognize this path?[/color]
      > try:
      > ReportPath = "\"L:\Informati on Technology\Publ ic\Report Procedures\""
      > or
      > ReportPath = "\"L:\\Informat ion Technology\\Pub lic\\Report Procedures\\\""
      >[/color]


      Comment

      • Bogdan Lachendro

        #4
        Re: Defining network paths.

        On 11/6/2003 5:04 PM, Jasper Recto wrote:
        [color=blue]
        > Didn't work,
        > any other suggestions?[/color]

        Could you send some sample code showing the way you use that ReportPath ?

        Comment

        • Jasper Recto

          #5
          Re: Defining network paths.

          Here is an example. The report path is determined earlier in the program.
          Then it is plugged into the big statement.

          ReportPath = "L:\Informa tion Technology\Publ ic\Report Procedure\"

          ReportName = "HolsetToolsQty OnHand.p"

          Private Sub Button1_Click(B yVal sender As System.Object, ByVal e As
          System.EventArg s) Handles Button1.Click

          Progress = "V:\PROGRESS\bi n\prowin32.exe V:\VANTAGE\db\v antage.db -ininame
          V:\VANTAGE\vant age.ini -pf V:\VANTAGE\db\V antage.pf -N TCP -H loc-vntg -S
          epic52 -ld vantage -p " & ReportPath & ReportName & " -rand 2 -q -basekey
          ini"

          Report = Shell(Progress, 1)

          End Sub

          Thanks,

          jasper

          "Bogdan Lachendro" <lachu@-no-spam.please.ics lab.agh.edu.pl> wrote in
          message news:u7yIatJpDH A.2064@TK2MSFTN GP11.phx.gbl...[color=blue]
          > On 11/6/2003 5:04 PM, Jasper Recto wrote:
          >[color=green]
          > > Didn't work,
          > > any other suggestions?[/color]
          >
          > Could you send some sample code showing the way you use that ReportPath ?
          >[/color]


          Comment

          • Bogdan Lachendro

            #6
            Re: Defining network paths.

            On 11/6/2003 8:34 PM, Jasper Recto wrote:
            [color=blue]
            > ReportPath = "L:\Informa tion Technology\Publ ic\Report Procedure\"
            > ReportName = "HolsetToolsQty OnHand.p"[/color]

            [cut][color=blue]
            > epic52 -ld vantage -p " & ReportPath & ReportName & " -rand 2 -q -basekey[/color]
            [cut]
            I think you should use:

            [cut]
            epic52 -ld vantage -p """ & ReportPath & ReportName & """ -rand (and so on)
            [cut]

            Hope this helps.
            regards

            Comment

            • Jasper Recto

              #7
              Re: Defining network paths.

              Works great!!

              Thanks for your help!
              Jasper
              "Bogdan Lachendro" <lachu@-no-spam.please.ics lab.agh.edu.pl> wrote in
              message news:unNuUAKpDH A.384@tk2msftng p13.phx.gbl...[color=blue]
              > On 11/6/2003 8:34 PM, Jasper Recto wrote:
              >[color=green]
              > > ReportPath = "L:\Informa tion Technology\Publ ic\Report Procedure\"
              > > ReportName = "HolsetToolsQty OnHand.p"[/color]
              >
              > [cut][color=green]
              > > epic52 -ld vantage -p " & ReportPath & ReportName & " -rand[/color][/color]
              2 -q -basekey[color=blue]
              > [cut]
              > I think you should use:
              >
              > [cut]
              > epic52 -ld vantage -p """ & ReportPath & ReportName & """ -rand (and so[/color]
              on)[color=blue]
              > [cut]
              >
              > Hope this helps.
              > regards
              >[/color]


              Comment

              Working...