How to get the directory name using vnode address
All,
I am writing a C program and need info on the following:
1. I have got the vnode address of the current directory. my question is "How to get the inode information (in particular, directory name) from the vnode address ?". What calls i need to use in order to get the info ?
2. Any helpful web sites containing the above information ?
Thanks in advance
package x.y;
import java.io.File;
public class Test {
public static void main(String[] args) {
System.out.println(new File(Test.class.getResource("").getFile()).getAbsolutePath());
}
Similar Messages
-
How to get the computer name using C#?
Hi all,
Does anyone know how to get the computer name using c#?
ThanksTry this, string computer_name = System.Environment.GetEnvironmentVariable("COMPUTERNAME");
Naren. -
How to get the forma name using the Spool number
Hi all,
Please tell me how to find the Script name or Smartform name using the SPOOL NUMBER
Regards
AjayHi Ajay,
you could use the FM 'SSF_FUNCTION_MODULE_NAME' inorder to get the Smart Form Function Module name by giving the name of the form.
Reward points if this helps,
Kiran -
How to get the font name used in document?
Hi some one help me to get the font name which should check each text in the Illustrator CS3.
Please someone guide me..
sAIFont->FontKeyFromFont(AIFontRef FntRef,&fontKey);
Here what to set for fontref..Oviya... wrote:
Hi some one help me to get the font name which should check each text in the Illustrator CS3.
Please someone guide me..
sAIFont->FontKeyFromFont(AIFontRef FntRef,&fontKey);
Here what to set for fontref..
Are you talking about the location of the font? -
How to get the country name from IP address?
Hello All,
I am able get the IP address of the visitors by using
String ipAddress = request.getRemoteAddr(); .
I'm also getting the host name by using
InetAddress iaddress = InetAddress.getByName( ipAddress );
String ipaddr = iaddress.getHostName();
But... I'm not able to find the Country's name from which that IP is coming from.
Is there any class in JAVA that will help me find the respective country's name??
Thank u!!!There is no magic way to tell country from IP address. You can guesstimate the country using a IP-to-country mapping database, with some accuracy.
I use the free version of the GeoIP (google for it) database; it is a file that you download, and they have a Java API or you can roll your own. They also have better quality databases for a fee, and apparently a web service. I prefer a file because it's faster and more reliable to check against a memory data structure than to make a long distance TCP/IP call. The web service isn't magic either; it is just an interface to the same database, and it doesn't give 100% accuracy, nothing will. If you use the file you may want to make it a monthly to-do item to download the latest version. There are other similar databases around too; google for "geolocation". -
How to get the directory name where the class resides
I have following directory structure.
c:\one\two\three\four\five\Test.java
package name for Test.java is four.five
When I run, four.five.Test, I want to get the compelte path name where currently the Test.class is running i.e. "c:\one\two\three\four\five\"
so that if I move four.five.Test.java into some different directory structure, I should always get the complete path name.
Thanks In Advance
Sachinpackage x.y;
import java.io.File;
public class Test {
public static void main(String[] args) {
System.out.println(new File(Test.class.getResource("").getFile()).getAbsolutePath());
} -
How can I get the host name from Email address?
hi
When I using socket to develope an email-sending servlet,I don't know how to get the host name from emial address.can you help me,thanksStripping off the user name will give you the domain of from field in the message. This is not the same as the host. Take a look at:
http://www.stopspam.org/email/headers/headers.html
Theres a pretty good discussion about email headers and how to use the information. You probably want to check the information here against the RFC.
Sean -
How do I get the directory name that a class is located in?
How do I get the directory name that a class is located in? I have a class located under /com/dhcmc and I want to be able to retrieve the "/com/dhcmc" that the class is residing under so that I can then use this directoy name to build a relative path name for the other directories supporting the application such as the images directory etc i.e.
|---com
| \---dhcmc (my class resides here)
| +---images (supporting app dirs under the class dir)
| +---config (supporting app dirs under the class dir)You can try the methods.
Class.getClassLoader()
Class.getResourceAsStream()
Class.getResource()
You probably wont get the complete directory path, but you might
be able to load the files relative to your classes directory. -
How to get the owner name for the file in ftp using abap ?
Hi folks ,
How to get the owner name for the file in ftp using abap ? please help me very ugernt . I tried with all standard FTP commands
but doest work out me . Helping in this regard highly appreciated ...
Thanks and regards,
Swarupa VanarchiHi
dont you have used the os user while calling the FTP_CONNECT FM?
Hope you are not talking about the user executing the FTP program.
Else If you are talking about the FTP file creator then its not related to abap as you can handle it by maintaining the user in file name itself.
May be i am going too far with if and elses here as your question possesses no clarity.
Plz elaborate your requirement before anybody can help.
Regards
sateesh -
How to get the form name which is used in standard tcode like me23n in sap
how to get the form name which is used in standard tcode like me23n in sap
Moderator message: four out of four threads locked, please read and understand the following before posting further:
[Rules of engagement|http://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement]
[Asking Good Questions in the Forums to get Good Answers|Asking Good Questions in the SCN Discussion Spaces will help you get Good Answers]
Edited by: Thomas Zloch on Nov 18, 2011 1:32 PMhow to get the form name which is used in standard tcode like me23n in sap
Moderator message: four out of four threads locked, please read and understand the following before posting further:
[Rules of engagement|http://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement]
[Asking Good Questions in the Forums to get Good Answers|Asking Good Questions in the SCN Discussion Spaces will help you get Good Answers]
Edited by: Thomas Zloch on Nov 18, 2011 1:32 PM -
How to get the file name from directory
Hi,
I have a directory called test inside i have only one .txt file. i dont know that file name.
Is it possible get the file name using PL/SQl code. ???
Using that .txt file i have to create a dynamic table.
If i have use *.txt also not working
Anyone suggest me its possible to do or not????
Cheers,
ShanHi Saubhik ,
Wheni execute the function i am getting the following error
Warning: compiled but with compilation errors
Errors for FUNCTION LISTDIR
LINE/COL
ERROR
7/3
PLS-00201: identifier 'DBMS_BACKUP_RESTORE.SEARCHFILES' must be declared
7/3
PL/SQL: Statement ignored
8/54
PL/SQL: ORA-00942: table or view does not exist
8/20
PL/SQL: SQL Statement ignored
10/11
PLS-00364: loop index variable 'EACH_FILE' use is invalid
10/2
PL/SQL: Statement ignored Cheers,
Shan -
How to get the service name of a webservice using UDDI API
Hi,
Iam working on setting up a dynamic partner link in a BPEL, by passing the endpoint of a web service queried from the UDDI (Oracle Service Registry 10.3 ) using the API. Iam able to do it successfully.
Now, for example I have two operations in my wsdl, one to createCustomer and the other to bookTicket. I need to get the operation name using UDDI API so that i can pass it along with the endpoint to the partner link. ie. When i need to createCustomer, my UDDI API code will need to get the service name createCustomer and the endpoint and I would pass them to the partnerlink and the createCustomer operation of my webservice would be called.
Can any one help me to get the service names of the wsdl using UDDI APIs.
Thanks,
AnanthHi sia,
1. Table is APQI
2. field name for session name is GROUPID
regards,
amit m. -
How to find the query name using infoset name
Hi Experts
Iam new to the sap queries(SQ01,SQ02), some queries already created.
now i want to do some modification, my problem is i am not able to find the query name.
I know the infoset name, can you tell me how to find the query name using the infoset name, is ther any table for this.
i tried in sq01 also, but its confusion, pls advice me on this.
thanks in advance.
regards
rajaramHi
try like this..
SQ02 --> go to --> Query Directory..
from there you can get all the queries belong to a Infoset. -
How to get the Text name to pass in the parameter header in save_text
Hi,
I am trying to change the long text of operation for historical order by using the flat file.I am using the save_text to do this.I would like to know how to get the text name in order to pass the parameter header in save_text.
I went to the tcode iw62 to get the header information of the long text.300100000009200000001
i would like to know what this 1000000092 indicates and where is this value updated in the table so that i can link it thru the order no to get the link and pass it in the text_name.
can anyone help me out?
krishnanHi,
Your query is.
I went to the tcode iw62 to get the header information of the long text.300100000009200000001
i would like to know what this 1000000092 indicates
In above number
300 - Client
1000000092 - AUFPL - Routing number of operations in the order (You can fetch this from table HIVG)
00000001 - APLZL - General counter for order ( You can fetch this from table HIVG).
BR,
Vijay -
Dear Expert,
I have one requirement like to read the selected workset name in portal by the current user.I have read two documents regarding how to retrieve the PCD contents (iViews, Pages, Worksets and Roles) and its properties like Created by, Changed by, Last changed by and others using PCD API.
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/6112ecb7-0a01-0010-ef90-941c70c9e401?overridelayout=true
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/508baf88-9335-2d10-efa6-c6ad61e5fc4b?quicklink=index&overridelayout=true
But I am not able to understand how to get the specific name of the workset which is currently selected by the user.Can you please help me.
I am using portal 7.0.
Thanks & Regards,
PatralekhaHi Expert,
I found that we can use Interface INavigationHelperService to read Portal Role selected by user at runtime from http://scn.sap.com/thread/52194
But this class is available in SAP NetWeaver 7.30 Enterprise Portal .
But in SAP NetWeaver 7.0 Enterprise Portal that interface is not available.
INavigationService is available there.
But didn't get any proper discussion on this interface for the same requirement.
Can you please help me.
Thanks & Regards,
Patralekha
Maybe you are looking for
-
Installed UEFI Diagnostics but it doesn't seem to run
This regards an HP Pavilion dv6t-7000 CTO Entertainment Notebook PC. I'm trying to run hardware diagnostics to find out whether my motherboard has a problem. (New battery is plugged in but not charging.) I downloaded HP UEFI Support Environment (Vers
-
Hi. I'm using Compaq CQ40-101TU which is running Windows 7 Professional 32-bit.. My optical mouse (AVF AM1940U) is not working in USB ports. The pointer of mouse is always stuck at top of the screen. I can move the mouse left or right to both edges
-
Mark several images at once with one or more stars
howdy, using aperture 3 and am mostly happy with it (except a nasty import bug). however, a question about marking images with * to *** stars: if I select several images at once within the aperture browser, is there a way to mark those images with a
-
White Balancing pictures under heavy blue lighting
I am looking at LightRoom to process RAW images from my D3100. I'll be shooting my reef aquarium which is under heavy blue lighting (about 450nm). I can balance the pictures in Capture NX2, however in Lightroom the settings are maxed when using the
-
No sim message when sim is inserted in iPad
I keep getting a 'No Sim' message despite one being installed. A new one has also been tried