0

Right so i'm just trying to get a batch file working and I keep getting this as my starting line for my admin is.

CMD C:\Windows\System32>

All I want to do is run this command

C:/Program Files/AMD/RyzenMaster/HPET.bat. 

and I cant get it to work. it just keeps coming up with

program is not recognised as an internal or external command.

I really don't know what to do please can somebody help.

arghtype
  • 4,376
  • 11
  • 45
  • 60
  • Are you sure that `C:/Program Files/AMD/RyzenMaster/HPET.bat`  exists? Try to open `C:/Program Files/AMD/RyzenMaster` in the windows explorer and try to find `HPET.bat` – litelite Aug 17 '17 at 18:25
  • just checking but i have to get it enabled to allow me to use an application that then allows me to control cpu speeds and ram speed without going into the bios – PandasOnSteroids Aug 17 '17 at 18:26
  • What is the exact command line you use? You do know that if a file path have a space it must be inside quotes ("")? – litelite Aug 17 '17 at 18:27
  • just check it doesnt come up for some reason – PandasOnSteroids Aug 17 '17 at 18:28
  • 1
    i didn't know that it has to be in quotes – PandasOnSteroids Aug 17 '17 at 18:28
  • the exact line was Program Files/AMD/RyzenMaster/HPET.bat. – PandasOnSteroids Aug 17 '17 at 18:29
  • CMD handles space as parameter separator. You are trying to run a program called `C:/Program` with `Files/AMD/RyzenMaster/HPET.bat` as an argument. `C:/Program` does not exists so you have an error – litelite Aug 17 '17 at 18:29
  • so would i need to put it like this? "Program Files"/AMD/RyzenMaster/HPET.bat – PandasOnSteroids Aug 17 '17 at 18:31
  • Possible duplicate of [How to use spaces in CMD?](https://stackoverflow.com/questions/6376113/how-to-use-spaces-in-cmd) – ventiseis Aug 17 '17 at 19:36
  • Possible duplicate of [How to write a full path in a batch file having a folder name with space?](https://stackoverflow.com/questions/7347501/how-to-write-a-full-path-in-a-batch-file-having-a-folder-name-with-space) –  Aug 17 '17 at 19:49

1 Answers1

0

CMD handles spaces as a parameter separator. So your command is trying to run a program called C:/Program with Files/AMD/RyzenMaster/HPET.bat as an argument. C:/Program does not exists so you have an error. To fix it, use "C:/Program Files/AMD/RyzenMaster/HPET.bat" instead (notice the quotes " ).

litelite
  • 2,857
  • 4
  • 23
  • 33
  • i think i now got it enabled now. i need to restart my pc but if this works you are amazing back in a min – PandasOnSteroids Aug 17 '17 at 18:34
  • It worked, Thank you so much, you are a god send. i'm defiantly going to have a look into learning more command and things like that. but once again thank you so much – PandasOnSteroids Aug 17 '17 at 18:39