Posts: 1
Threads: 1
Joined: May 2009
Reputation:
0
05-15-2009, 10:22 AM
Hi can anyone answer my question quickly please.
Question:
Write a program to print the current folder name in the local system.
Posts: 13
Threads: 5
Joined: Dec 2009
Reputation:
0
01-05-2010, 11:52 PM
use inbuilt environment variable
Posts: 1,199
Threads: 5
Joined: Nov 2008
Reputation:
0
01-07-2010, 04:17 PM
@D.Baba Fakruddin - The query was to get the current folder name which can be retrieved by environment variable suggested by azar80.
what you are doing is just parsing the path string which is required to be passed, right?
Posts: 146
Threads: 50
Joined: Dec 2008
Reputation:
1
01-09-2010, 07:07 PM
Hello Saket,
Thanks for your advice. I think you do understand the question, Question is to write a script to get a Stored Folder Name. as per azar80 comments one line script. I don't think that is exact answer for this question. Any how, Ask for a question to Kannan_Paneersalvam once again and provide your valuable Answer. I am waiting for that.
I know only the above way to get a Folder Name. If you have any other way to get Folder Name other than above two ways. Please let me know.
Thanks & regards,
Baba Fakruddin.D
Posts: 53
Threads: 7
Joined: May 2011
Reputation:
0
07-09-2011, 11:10 AM
Well i have seen that commentators are arguing with their answer....actually the question is not clear.....
what exactly u want????
1. The current folder name only where you are present???
2. Or u need the full path of that folder where you are present???
The answer of 1st question is what exactly gowtham.m.h has suggested.....
and the answer of 2nd question is to use inbuilt Environment variable ("TestDir") what exactly azar80 has suggested.....
And i dont think bfakruddin has suggested any logical answer...he has just passed the string and printed that....but if i dnt know the string then what??? i guess exactly this thing is being asked in this question that how to get that string.......
So better try gowtham.m.h or azar80 suggestion as per ur need.....