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!










share|improve this question




















  • 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















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!










share|improve this question




















  • 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













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!










share|improve this question















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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














  • 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










2 Answers
2






active

oldest

votes

















up vote
0
down vote













There are two way to do this.




  1. Use Double-quotes as stated by @DavidPostill

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






share|improve this answer





















  • 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




















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 :-)






share|improve this answer





















  • 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











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
});


}
});














draft saved

draft discarded


















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.




  1. Use Double-quotes as stated by @DavidPostill

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






share|improve this answer





















  • 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

















up vote
0
down vote













There are two way to do this.




  1. Use Double-quotes as stated by @DavidPostill

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






share|improve this answer





















  • 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















up vote
0
down vote










up vote
0
down vote









There are two way to do this.




  1. Use Double-quotes as stated by @DavidPostill

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






share|improve this answer












There are two way to do this.




  1. Use Double-quotes as stated by @DavidPostill

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







share|improve this answer












share|improve this answer



share|improve this answer










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




















  • 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














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 :-)






share|improve this answer





















  • 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















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 :-)






share|improve this answer





















  • 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













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 :-)






share|improve this answer












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 :-)







share|improve this answer












share|improve this answer



share|improve this answer










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


















  • 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


















draft saved

draft discarded




















































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.




draft saved


draft discarded














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





















































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







Popular posts from this blog

Plaza Victoria

In PowerPoint, is there a keyboard shortcut for bulleted / numbered list?

How to put 3 figures in Latex with 2 figures side by side and 1 below these side by side images but in...