Batch file unable to access Program files X86
up vote
0
down vote
favorite
I need to be able to run a simple ROBOCOPY on a backup file that is location in: C:Program Files (x86). I get an error when I try to test I get an error saying that it doesn't like the x86. I have also tried %programfiles% and that didn't resolve it either.
I appreciate any help!
windows-7 windows batch
add a comment |
up vote
0
down vote
favorite
I need to be able to run a simple ROBOCOPY on a backup file that is location in: C:Program Files (x86). I get an error when I try to test I get an error saying that it doesn't like the x86. I have also tried %programfiles% and that didn't resolve it either.
I appreciate any help!
windows-7 windows batch
2
Use"
s around names with spaces.
– DavidPostill♦
May 17 '16 at 17:11
Note that%programfiles%
is (64-bit)C:Program Files
; if you want to use the variable (which you don't need to) for (32-bit)C:Program Files (x86)
it's%programfiles(x86)%
.
– dave_thompson_085
May 18 '16 at 1:45
The quotes totally worked! Thanks! I really appreciate your help!
– user595035
May 19 '16 at 14:44
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I need to be able to run a simple ROBOCOPY on a backup file that is location in: C:Program Files (x86). I get an error when I try to test I get an error saying that it doesn't like the x86. I have also tried %programfiles% and that didn't resolve it either.
I appreciate any help!
windows-7 windows batch
I need to be able to run a simple ROBOCOPY on a backup file that is location in: C:Program Files (x86). I get an error when I try to test I get an error saying that it doesn't like the x86. I have also tried %programfiles% and that didn't resolve it either.
I appreciate any help!
windows-7 windows batch
windows-7 windows batch
edited May 17 '16 at 19:28
Ƭᴇcʜιᴇ007
98.5k14155212
98.5k14155212
asked May 17 '16 at 16:57
user595035
611
611
2
Use"
s around names with spaces.
– DavidPostill♦
May 17 '16 at 17:11
Note that%programfiles%
is (64-bit)C:Program Files
; if you want to use the variable (which you don't need to) for (32-bit)C:Program Files (x86)
it's%programfiles(x86)%
.
– dave_thompson_085
May 18 '16 at 1:45
The quotes totally worked! Thanks! I really appreciate your help!
– user595035
May 19 '16 at 14:44
add a comment |
2
Use"
s around names with spaces.
– DavidPostill♦
May 17 '16 at 17:11
Note that%programfiles%
is (64-bit)C:Program Files
; if you want to use the variable (which you don't need to) for (32-bit)C:Program Files (x86)
it's%programfiles(x86)%
.
– dave_thompson_085
May 18 '16 at 1:45
The quotes totally worked! Thanks! I really appreciate your help!
– user595035
May 19 '16 at 14:44
2
2
Use
"
s around names with spaces.– DavidPostill♦
May 17 '16 at 17:11
Use
"
s around names with spaces.– DavidPostill♦
May 17 '16 at 17:11
Note that
%programfiles%
is (64-bit) C:Program Files
; if you want to use the variable (which you don't need to) for (32-bit) C:Program Files (x86)
it's %programfiles(x86)%
.– dave_thompson_085
May 18 '16 at 1:45
Note that
%programfiles%
is (64-bit) C:Program Files
; if you want to use the variable (which you don't need to) for (32-bit) C:Program Files (x86)
it's %programfiles(x86)%
.– dave_thompson_085
May 18 '16 at 1:45
The quotes totally worked! Thanks! I really appreciate your help!
– user595035
May 19 '16 at 14:44
The quotes totally worked! Thanks! I really appreciate your help!
– user595035
May 19 '16 at 14:44
add a comment |
2 Answers
2
active
oldest
votes
up vote
0
down vote
There are two way to do this.
- Use Double-quotes as stated by @DavidPostill
- Use the respective 8.3 name "PROGRA~2".
To determine the 8.3 name of the folder:
- Open a command prompt
- Type "dir /x" this will list the files and folder and their respective 8.3 notation
Thanks GeekyDaddy, I tried the 8.3 trick first, but I don't think the directory included the 8.3 name (as far as I could tell, but that might be user error as opposed to it not being there :))
– user595035
May 19 '16 at 14:46
add a comment |
up vote
0
down vote
The use of single or double quotes referenced by @GeekyDaddy & mentioned initially by @DavidPostill - is whats required.
The 8.3 equivalent is as praise worthy.
Another tip to get exact / literal paths in (CMD) command-prompt is to start with a quoted string ("C:P"
) such as:
"C:P"
tab + tab + ... # & so-forth for each suggestion
This would give you suggestion which it ought to auto-complete for first / every match thereafter depending on the number of characters you'd typed.
A belated version of bash-completion by 20+ years :-)
Great info! I really appreciate it. I am just learning how all this stuff works and I really appreciate the direction you have given!
– user595035
May 19 '16 at 14:45
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
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%2fsuperuser.com%2fquestions%2f1077915%2fbatch-file-unable-to-access-program-files-x86%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
There are two way to do this.
- Use Double-quotes as stated by @DavidPostill
- Use the respective 8.3 name "PROGRA~2".
To determine the 8.3 name of the folder:
- Open a command prompt
- Type "dir /x" this will list the files and folder and their respective 8.3 notation
Thanks GeekyDaddy, I tried the 8.3 trick first, but I don't think the directory included the 8.3 name (as far as I could tell, but that might be user error as opposed to it not being there :))
– user595035
May 19 '16 at 14:46
add a comment |
up vote
0
down vote
There are two way to do this.
- Use Double-quotes as stated by @DavidPostill
- Use the respective 8.3 name "PROGRA~2".
To determine the 8.3 name of the folder:
- Open a command prompt
- Type "dir /x" this will list the files and folder and their respective 8.3 notation
Thanks GeekyDaddy, I tried the 8.3 trick first, but I don't think the directory included the 8.3 name (as far as I could tell, but that might be user error as opposed to it not being there :))
– user595035
May 19 '16 at 14:46
add a comment |
up vote
0
down vote
up vote
0
down vote
There are two way to do this.
- Use Double-quotes as stated by @DavidPostill
- Use the respective 8.3 name "PROGRA~2".
To determine the 8.3 name of the folder:
- Open a command prompt
- Type "dir /x" this will list the files and folder and their respective 8.3 notation
There are two way to do this.
- Use Double-quotes as stated by @DavidPostill
- Use the respective 8.3 name "PROGRA~2".
To determine the 8.3 name of the folder:
- Open a command prompt
- Type "dir /x" this will list the files and folder and their respective 8.3 notation
answered May 17 '16 at 20:57
GeekyDaddy
37517
37517
Thanks GeekyDaddy, I tried the 8.3 trick first, but I don't think the directory included the 8.3 name (as far as I could tell, but that might be user error as opposed to it not being there :))
– user595035
May 19 '16 at 14:46
add a comment |
Thanks GeekyDaddy, I tried the 8.3 trick first, but I don't think the directory included the 8.3 name (as far as I could tell, but that might be user error as opposed to it not being there :))
– user595035
May 19 '16 at 14:46
Thanks GeekyDaddy, I tried the 8.3 trick first, but I don't think the directory included the 8.3 name (as far as I could tell, but that might be user error as opposed to it not being there :))
– user595035
May 19 '16 at 14:46
Thanks GeekyDaddy, I tried the 8.3 trick first, but I don't think the directory included the 8.3 name (as far as I could tell, but that might be user error as opposed to it not being there :))
– user595035
May 19 '16 at 14:46
add a comment |
up vote
0
down vote
The use of single or double quotes referenced by @GeekyDaddy & mentioned initially by @DavidPostill - is whats required.
The 8.3 equivalent is as praise worthy.
Another tip to get exact / literal paths in (CMD) command-prompt is to start with a quoted string ("C:P"
) such as:
"C:P"
tab + tab + ... # & so-forth for each suggestion
This would give you suggestion which it ought to auto-complete for first / every match thereafter depending on the number of characters you'd typed.
A belated version of bash-completion by 20+ years :-)
Great info! I really appreciate it. I am just learning how all this stuff works and I really appreciate the direction you have given!
– user595035
May 19 '16 at 14:45
add a comment |
up vote
0
down vote
The use of single or double quotes referenced by @GeekyDaddy & mentioned initially by @DavidPostill - is whats required.
The 8.3 equivalent is as praise worthy.
Another tip to get exact / literal paths in (CMD) command-prompt is to start with a quoted string ("C:P"
) such as:
"C:P"
tab + tab + ... # & so-forth for each suggestion
This would give you suggestion which it ought to auto-complete for first / every match thereafter depending on the number of characters you'd typed.
A belated version of bash-completion by 20+ years :-)
Great info! I really appreciate it. I am just learning how all this stuff works and I really appreciate the direction you have given!
– user595035
May 19 '16 at 14:45
add a comment |
up vote
0
down vote
up vote
0
down vote
The use of single or double quotes referenced by @GeekyDaddy & mentioned initially by @DavidPostill - is whats required.
The 8.3 equivalent is as praise worthy.
Another tip to get exact / literal paths in (CMD) command-prompt is to start with a quoted string ("C:P"
) such as:
"C:P"
tab + tab + ... # & so-forth for each suggestion
This would give you suggestion which it ought to auto-complete for first / every match thereafter depending on the number of characters you'd typed.
A belated version of bash-completion by 20+ years :-)
The use of single or double quotes referenced by @GeekyDaddy & mentioned initially by @DavidPostill - is whats required.
The 8.3 equivalent is as praise worthy.
Another tip to get exact / literal paths in (CMD) command-prompt is to start with a quoted string ("C:P"
) such as:
"C:P"
tab + tab + ... # & so-forth for each suggestion
This would give you suggestion which it ought to auto-complete for first / every match thereafter depending on the number of characters you'd typed.
A belated version of bash-completion by 20+ years :-)
answered May 17 '16 at 22:09
aphorise
1164
1164
Great info! I really appreciate it. I am just learning how all this stuff works and I really appreciate the direction you have given!
– user595035
May 19 '16 at 14:45
add a comment |
Great info! I really appreciate it. I am just learning how all this stuff works and I really appreciate the direction you have given!
– user595035
May 19 '16 at 14:45
Great info! I really appreciate it. I am just learning how all this stuff works and I really appreciate the direction you have given!
– user595035
May 19 '16 at 14:45
Great info! I really appreciate it. I am just learning how all this stuff works and I really appreciate the direction you have given!
– user595035
May 19 '16 at 14:45
add a comment |
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
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%2fsuperuser.com%2fquestions%2f1077915%2fbatch-file-unable-to-access-program-files-x86%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
Use
"
s around names with spaces.– DavidPostill♦
May 17 '16 at 17:11
Note that
%programfiles%
is (64-bit)C:Program Files
; if you want to use the variable (which you don't need to) for (32-bit)C:Program Files (x86)
it's%programfiles(x86)%
.– dave_thompson_085
May 18 '16 at 1:45
The quotes totally worked! Thanks! I really appreciate your help!
– user595035
May 19 '16 at 14:44