Thread: Folders in 8bit

  1. #1
    Registered User
    Join Date
    Mar 2009

    Folders in 8bit

    Im trying to open microsoft word from a c program.

    I know i have to use 8bit notation in the path to the program... but the path is the following..

    C:\Program Files\Microsoft Office\Office12\winword.exe

    But when i put that in 8bit is..


    But of course the C:\Program Files\Microsoft Office is not the 1st folder with "MICROS" at the beggining, neither the 2nd, 3rd nor 4th..

    in the Program Files folder i have

    microsoft frontpage
    microsoft office
    microsoft plus! digital media
    microsoft plus! photo story
    microsoft SQL server
    microsoft visual studio
    microsoft works
    microsoft .NET

    MICROS~1 open microsoft frontpage
    MICROS~2 open microsoft plus! digital media
    MICROS~3 open microsoft plus! photo story
    MICROS~4 open microsoft works
    MICROS~5 not opens anything....

    how will i open the microsoft office folder?!

  2. #2
    Officially An Architect brewbuck's Avatar
    Join Date
    Mar 2007
    Portland, OR
    Quote Originally Posted by epi_jimenez View Post
    I know i have to use 8bit notation in the path to the program...
    What is "8 bit" notation? I think you are confusing long pathname extensions with character set... You don't need to do anything special with the filename, just use it.
    Remember to escape the backslashes.
    	if (a) do { f( b); } while(1);
    	else   do { f(!b); } while(1);

  3. #3
    Algorithm Dissector iMalc's Avatar
    Join Date
    Dec 2005
    New Zealand
    You're not supposed to try and build the Short path yourself.
    You're supposed to use GetShortPathName
    My homepage
    Advice: Take only as directed - If symptoms persist, please see your debugger

    Linus Torvalds: "But it clearly is the only right way. The fact that everybody else does it some other way only means that they are wrong"

  4. #4
    Registered User
    Join Date
    Mar 2009
    I found it. Im working in C programming, and over there i have to use the shortname since it only handles 8bit long characters...

    If you go to the command prompt and write " dir *. /x" it will have a new column with the short name (if it have one...) of the folder or file.

    thanks for trying, greatly appreciate it.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Error while trying to list folders
    By Hellbinder in forum Networking/Device Communication
    Replies: 5
    Last Post: 06-12-2009, 05:27 PM
  2. Problems Moving Certain Folders...
    By notsocks in forum C Programming
    Replies: 8
    Last Post: 12-16-2007, 07:25 AM
  3. Help with folders
    By FlyingIsFun1217 in forum C++ Programming
    Replies: 5
    Last Post: 10-21-2006, 09:41 AM
  4. 8Bit Bitmaps Problem
    By cboard_member in forum Game Programming
    Replies: 3
    Last Post: 08-19-2005, 05:55 PM
  5. Deleting folders and sub folders
    By Boomba in forum C++ Programming
    Replies: 30
    Last Post: 06-11-2003, 11:58 AM