Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works
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,065 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