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.....
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.....