has many :code_blocks

Random thoughts and postings to keep track of my learning process

How to get the short name of a path containing spaces

leave a comment »

In a command line window type:

dir *. /x

That should give the short name of the path that might contain spaces.


It’s really useful when you have to install the pg gem and you experience trouble because mingw can’t read file paths with spaces


gem install pg — –with-pg-config=c:/Program Files (x86)/PostgreSQL/8.4/bin/pg_config.exe  should become

gem install pg — –with-pg-config=c:/PROGRA~2/PostgreSQL/8.4/bin/pg_config.exe


Written by nkartcode

09/03/2015 at 1:15 PM

Posted in windows

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: