Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: mapping a path in ASP


Message #1 by "Joe Ehrenfeld" <joee@v...> on Fri, 21 Sep 2001 15:24:20
I am creating an instance of a compenet object in one of my ASP 

applications. One of the features of the compenet is to put in the path of 

the exe file. I want to put the exe file on another machine. How do type 

in the path to another machine? Below is the path when the exe resides on 

the web sever that is dishing up the ASP and this work fine. But if I put 

the exe on another machine, say a machine who's name is Ussvckdcm006 I 

can't seem to get the path right. The web server can see this machine on 

the network. 



Here is the path for the machine that dishes up the ASP. This works fine.

 objExecutor.Application = "D:\inetpub\vbApps\PalletIDLabel.exe"



Here is the path for the machine that I want to house the exe, this does 

not work.

objExecutor.Application = "Ussvckdcm006\vbApps\PalletIdLabel.exe"
Message #2 by Kyle Burns <kburns@c...> on Fri, 21 Sep 2001 10:04:18 -0500
Provided the component can use UNC paths, it would go like this:

//server/share/folder/file



So if the machine Ussvckdcm006 has a share named vbApps containing the file

PalletIDLabel.exe, then the UNC path to this file would be:

//Ussvckdcm006/vbApps/PalletIDLabel.exe





I hope this helps you.



=================================

Kyle M. Burns, MCSD

ECommerce Technology Manager

Centra Credit Union

kburns@c...



 





-----Original Message-----

From: Joe Ehrenfeld [mailto:joee@v...]

Sent: Friday, September 21, 2001 10:24 AM

To: ASP Web HowTo

Subject: [asp_web_howto] mapping a path in ASP





I am creating an instance of a compenet object in one of my ASP 

applications. One of the features of the compenet is to put in the path of 

the exe file. I want to put the exe file on another machine. How do type 

in the path to another machine? Below is the path when the exe resides on 

the web sever that is dishing up the ASP and this work fine. But if I put 

the exe on another machine, say a machine who's name is Ussvckdcm006 I 

can't seem to get the path right. The web server can see this machine on 

the network. 



Here is the path for the machine that dishes up the ASP. This works fine.

 objExecutor.Application = "D:\inetpub\vbApps\PalletIDLabel.exe"



Here is the path for the machine that I want to house the exe, this does 

not work.

objExecutor.Application = "Ussvckdcm006\vbApps\PalletIdLabel.exe"
Message #3 by "Marcelo" <foros@f...> on Fri, 21 Sep 2001 12:50:15 -0300
This code list major system variables.....find the one that helps you.... I

think that you must use  MAPPATH





Marcelo



<html>

<body>

<table border="1">

<%

For Each Key in Request.ServerVariables

 Response.Write "<tr><td><b>" & (key) & "</b></td><td>"

 Response.Write(Request.ServerVariables(Key)) & "</td></tr>"

Next

%>

</table>

</body>

</html>



----- Original Message -----

From: "Joe Ehrenfeld" <joee@v...>

To: "ASP Web HowTo" <asp_web_howto@p...>

Sent: Friday, September 21, 2001 3:24 PM

Subject: [asp_web_howto] mapping a path in ASP





> I am creating an instance of a compenet object in one of my ASP

> applications. One of the features of the compenet is to put in the path of

> the exe file. I want to put the exe file on another machine. How do type

> in the path to another machine? Below is the path when the exe resides on

> the web sever that is dishing up the ASP and this work fine. But if I put

> the exe on another machine, say a machine who's name is Ussvckdcm006 I

> can't seem to get the path right. The web server can see this machine on

> the network.

>

> Here is the path for the machine that dishes up the ASP. This works fine.

>  objExecutor.Application = "D:\inetpub\vbApps\PalletIDLabel.exe"

>

> Here is the path for the machine that I want to house the exe, this does

> not work.

> objExecutor.Application = "Ussvckdcm006\vbApps\PalletIdLabel.exe"

>

  Return to Index