|
-
April 19th, 2017, 12:10 PM
#1
Universal file path in Java
I have created a Java program which is executing cmd.exe and that cmd.exe is running a batch file which is installing SSL certificates to java keytool.
Now, the issue is i have specified the path of that .bat file as per my system. So, if i give that java program to anyone else it won't work because that person should not have the same file path.
Suppose my batch file is in C:/Java/Certificates/xyz.bat but the other might have xyz.bat in D:/Test/xyz.bat.
So, i want to know is there any provision of universal file path name in java through which it will find the xyz.bat from anywhere in the system?
Thanks,
Pratik Avinash
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|