Defining network paths.

  • Thread starter Thread starter Jasper Recto
  • Start date Start date
J

Jasper Recto

I have a statement that defines a network path"

ReportPath = "L:\Information Technology\Public\Report Procedures\"

When I run the program, it tells me that it can't recognize the argument:
'Technology\Public\Report'
Why does it not notice the "Information" and "Procedures" part of the path?
What do I need to put between the 2 words to recognize this path?
 
I have a statement that defines a network path"

ReportPath = "L:\Information Technology\Public\Report Procedures\"

When I run the program, it tells me that it can't recognize the argument:
'Technology\Public\Report'
Why does it not notice the "Information" and "Procedures" part of the path?
What do I need to put between the 2 words to recognize this path?
try:
ReportPath = "\"L:\Information Technology\Public\Report Procedures\""
or
ReportPath = "\"L:\\Information Technology\\Public\\Report Procedures\\\""
 
Here is an example. The report path is determined earlier in the program.
Then it is plugged into the big statement.

ReportPath = "L:\Information Technology\Public\Report Procedure\"

ReportName = "HolsetToolsQtyOnHand.p"

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click

Progress = "V:\PROGRESS\bin\prowin32.exe V:\VANTAGE\db\vantage.db -ininame
V:\VANTAGE\vantage.ini -pf V:\VANTAGE\db\Vantage.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
 
ReportPath = "L:\Information Technology\Public\Report Procedure\"
ReportName = "HolsetToolsQtyOnHand.p"
[cut]
epic52 -ld vantage -p " & ReportPath & ReportName & " -rand 2 -q -basekey
[cut]
I think you should use:

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

Hope this helps.
regards
 
Works great!!

Thanks for your help!
Jasper
Bogdan Lachendro said:
ReportPath = "L:\Information Technology\Public\Report Procedure\"
ReportName = "HolsetToolsQtyOnHand.p"
[cut]
epic52 -ld vantage -p " & ReportPath & ReportName & " -rand
2 -q -basekey
[cut]
I think you should use:

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

Hope this helps.
regards
 
Back
Top