Jump to content

Welcome to Geeks to Go - Register now for FREE

Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!

How it Works Create Account
Photo

CMD command help


  • Please log in to reply

#1
Gl@dius

Gl@dius

    Member

  • Member
  • PipPip
  • 15 posts
Hey guys, I know how to rename a file in cmd (ren or rename), but I can't remember how to rename a file such as "program files'' to be "program_files." kind of like phrase renaming. Thanks for any help.
  • 0

Advertisements


#2
anzenketh

anzenketh

    BSOD Warrior/Computer Surgeon

  • Technician
  • 2,854 posts
HI Gl@dius.

It should be
ren "Program Files" program_files

  • 0

#3
Gl@dius

Gl@dius

    Member

  • Topic Starter
  • Member
  • PipPip
  • 15 posts
hmm... I can swear I tried that a couple times, but I must not have done it right. thanks for the conformation and help.
  • 0

#4
Gl@dius

Gl@dius

    Member

  • Topic Starter
  • Member
  • PipPip
  • 15 posts
stupid access is denied... (I need to change it because I need to run a file that is in the program files, on startup, and so I took the long way around, writing a batch file to run the file, and the batch file reads "program files" and tries to search for "program." baaaahhh..... anyone want to give me a computer? preferably gaming. :)
  • 0

#5
Ztruker

Ztruker

    Member 5k

  • Technician
  • 7,091 posts
If you still need help , post the batch file.
  • 0

#6
jester620

jester620

    Member

  • Member
  • PipPipPip
  • 150 posts
In order to run something via batch file/cmd, that has spaces in the directory tree, just put the entire path in quotes.

Example:

To run Firefox via batch file:

"c:\Program Files\Mozilla Firefox\firefox.exe"

Thats it!
  • 0

#7
Gl@dius

Gl@dius

    Member

  • Topic Starter
  • Member
  • PipPip
  • 15 posts
fine. be that way. I knew that, really. don't laugh at me. :)
  • 0

#8
jester620

jester620

    Member

  • Member
  • PipPipPip
  • 150 posts
Glad to help, let me know if you need more info.

:)
  • 0

#9
Gl@dius

Gl@dius

    Member

  • Topic Starter
  • Member
  • PipPip
  • 15 posts
nope, that handles it.
  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP