Run Bat file from resource folder
up vote
-1
down vote
favorite
I am trying to run a batch file from my resource folder in a project in eclipse. Any idea where to start on this?
C:UsersUsereclipse-workspaceAssistantResourcesClear.bat
obviously if i want to use this file on other computers i wouldnt be able to use the file path like that.
edit: OR if anyone knows any way to clear credentials in java instead of a batch file, the batch file process is
for /F "tokens=1,2 delims= " %G in ('cmdkey /list ^| findstr Target') do cmdkey /delete %H
clears generic credentials from the credential manager in windows
java
add a comment |
up vote
-1
down vote
favorite
I am trying to run a batch file from my resource folder in a project in eclipse. Any idea where to start on this?
C:UsersUsereclipse-workspaceAssistantResourcesClear.bat
obviously if i want to use this file on other computers i wouldnt be able to use the file path like that.
edit: OR if anyone knows any way to clear credentials in java instead of a batch file, the batch file process is
for /F "tokens=1,2 delims= " %G in ('cmdkey /list ^| findstr Target') do cmdkey /delete %H
clears generic credentials from the credential manager in windows
java
2
Possible duplicate of Run batch file from Java code
– Madhawa Priyashantha
Nov 11 at 3:54
you can execute a bat file or run cmd commnds from java stackoverflow.com/questions/15464111/… if our probleis to find the path you have to get user dir and append path to get correct location
– Madhawa Priyashantha
Nov 11 at 3:56
add a comment |
up vote
-1
down vote
favorite
up vote
-1
down vote
favorite
I am trying to run a batch file from my resource folder in a project in eclipse. Any idea where to start on this?
C:UsersUsereclipse-workspaceAssistantResourcesClear.bat
obviously if i want to use this file on other computers i wouldnt be able to use the file path like that.
edit: OR if anyone knows any way to clear credentials in java instead of a batch file, the batch file process is
for /F "tokens=1,2 delims= " %G in ('cmdkey /list ^| findstr Target') do cmdkey /delete %H
clears generic credentials from the credential manager in windows
java
I am trying to run a batch file from my resource folder in a project in eclipse. Any idea where to start on this?
C:UsersUsereclipse-workspaceAssistantResourcesClear.bat
obviously if i want to use this file on other computers i wouldnt be able to use the file path like that.
edit: OR if anyone knows any way to clear credentials in java instead of a batch file, the batch file process is
for /F "tokens=1,2 delims= " %G in ('cmdkey /list ^| findstr Target') do cmdkey /delete %H
clears generic credentials from the credential manager in windows
java
java
edited Nov 11 at 3:47
asked Nov 11 at 3:13
Samuel Dague
11
11
2
Possible duplicate of Run batch file from Java code
– Madhawa Priyashantha
Nov 11 at 3:54
you can execute a bat file or run cmd commnds from java stackoverflow.com/questions/15464111/… if our probleis to find the path you have to get user dir and append path to get correct location
– Madhawa Priyashantha
Nov 11 at 3:56
add a comment |
2
Possible duplicate of Run batch file from Java code
– Madhawa Priyashantha
Nov 11 at 3:54
you can execute a bat file or run cmd commnds from java stackoverflow.com/questions/15464111/… if our probleis to find the path you have to get user dir and append path to get correct location
– Madhawa Priyashantha
Nov 11 at 3:56
2
2
Possible duplicate of Run batch file from Java code
– Madhawa Priyashantha
Nov 11 at 3:54
Possible duplicate of Run batch file from Java code
– Madhawa Priyashantha
Nov 11 at 3:54
you can execute a bat file or run cmd commnds from java stackoverflow.com/questions/15464111/… if our probleis to find the path you have to get user dir and append path to get correct location
– Madhawa Priyashantha
Nov 11 at 3:56
you can execute a bat file or run cmd commnds from java stackoverflow.com/questions/15464111/… if our probleis to find the path you have to get user dir and append path to get correct location
– Madhawa Priyashantha
Nov 11 at 3:56
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53245536%2frun-bat-file-from-resource-folder%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
2
Possible duplicate of Run batch file from Java code
– Madhawa Priyashantha
Nov 11 at 3:54
you can execute a bat file or run cmd commnds from java stackoverflow.com/questions/15464111/… if our probleis to find the path you have to get user dir and append path to get correct location
– Madhawa Priyashantha
Nov 11 at 3:56