473,320 Members | 1,814 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Path of the asp script

Hello,

how can I find out the path of the ASP I am currently executing?
I mean the absolute path like: d:\web\asp\myasp.asp should bring me
d:\web\asp.
Preferrable in VBScript.

Thank you,

Markus
Jun 9 '06 #1
5 5615
Have a look on Server.MapPath()

/pexi

"Koegel,Markus" <Ma***********@bc.boehringer-ingelheim.com> wrote in message
news:e6**********@news.dtag.de...
Hello,

how can I find out the path of the ASP I am currently executing?
I mean the absolute path like: d:\web\asp\myasp.asp should bring me
d:\web\asp.
Preferrable in VBScript.

Thank you,

Markus

Jun 9 '06 #2
Pexi wrote on 09 jun 2006 in microsoft.public.inetserver.asp.general:
"Koegel,Markus" <Ma***********@bc.boehringer-ingelheim.com> wrote in
message news:e6**********@news.dtag.de...
Hello,

how can I find out the path of the ASP I am currently executing?
I mean the absolute path like: d:\web\asp\myasp.asp should bring me
d:\web\asp.
Preferrable in VBScript.
Have a look on Server.MapPath()


[please do not toppost on usenet]

absRoot = request.servervariables("APPL_PHYSICAL_PATH")

absPathAndFile = request.servervariables("PATH_TRANSLATED")

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jun 9 '06 #3

"Evertjan." <ex**************@interxnl.net> wrote in message
news:Xn********************@194.109.133.242...
Pexi wrote on 09 jun 2006 in microsoft.public.inetserver.asp.general:
"Koegel,Markus" <Ma***********@bc.boehringer-ingelheim.com> wrote in
message news:e6**********@news.dtag.de...
Hello,

how can I find out the path of the ASP I am currently executing?
I mean the absolute path like: d:\web\asp\myasp.asp should bring me
d:\web\asp.
Preferrable in VBScript.
Have a look on Server.MapPath()


[please do not toppost on usenet]

absRoot = request.servervariables("APPL_PHYSICAL_PATH")


Root of the application not necessarily the folder the current file is
executing in.
absPathAndFile = request.servervariables("PATH_TRANSLATED")

The full file path to the currently executing file still not quite what we
are looking for.

sFolder = Server.MapPath(".")

That's got it.


--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

Jun 9 '06 #4

http://www.powerasp.com/content/hint...sical-path.asp
"Koegel,Markus" <Ma***********@bc.boehringer-ingelheim.com> wrote in message
news:e6**********@news.dtag.de...
Hello,

how can I find out the path of the ASP I am currently executing?
I mean the absolute path like: d:\web\asp\myasp.asp should bring me
d:\web\asp.
Preferrable in VBScript.

Thank you,

Markus

Jun 9 '06 #5
Thanks a lot!


Jun 14 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: hokiegal99 | last post by:
I installed Python-2.3 into c:\Program Files\Python23 on a new W2K SP4 computer. When I write a Python script and run it from the command prompt, I get the following error: C:\>python...
3
by: Peter Schwalm | last post by:
I'd like to modify the python search path depending on the source directory of the script being started. The reason is: I use a version control system, and the python scripts and modules are...
8
by: Darren Dale | last post by:
Is there a place to put python programs so I dont have to refer to the absolute path everytime I want to call them? For example: if I am in /home/me and want to execute: python...
4
by: Lars Yencken | last post by:
Hello, I'm working on a project where my python modules are using persistent files in the same directory. As an example, we're using rpy, so a piece of python code might read: from rpy import...
70
by: Michael Hoffman | last post by:
Many of you are familiar with Jason Orendorff's path module <http://www.jorendorff.com/articles/python/path/>, which is frequently recommended here on c.l.p. I submitted an RFE to add it to the...
3
by: PHaroZ | last post by:
Hi, I want to retrieve the complete full path to the directory of my current page but i don't find how to do that. For example i want : D:\myWebSite\firstDotNetWebApp\dir1\ I tried...
7
by: gmax2006 | last post by:
Hi, I use RedHat linux. How can I find where exactly the current python script is running? I use this code: #test.py import os,sys
34
by: Ben Sizer | last post by:
I've installed several different versions of Python across several different versions of MS Windows, and not a single time was the Python directory or the Scripts subdirectory added to the PATH...
11
by: rh00667 | last post by:
hi all, i'm confused now. how i can get the full path of an application? if myapp is in a directory which belongs to PATH, argv gives me the first token of cmd line, and not the real path of...
1
by: mhearne808[insert-at-sign-here]gmail[insert-dot-he | last post by:
I think I don't understand how the module search path works... Let's say I have a folders called 'test'. Underneath it, I create two more folders called 'foo' and 'bar'. In 'foo', I create an...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.