getcurrentdirectory

P

poppy

Whenever I use "Directory.getcurrentdirectory" I always
get "C:\WINDOWS\system32" despite the fact that the code
is running from a subdirectory of wwwroot.

Can someone help ?

How can I get the current directory on a code behind page ?
I dont want the full "C:\e.t.c. Just the current
directory name.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,140
Latest member
SweetcalmCBDreview
Top