Hi , I have this code for win xp
`char NotesDir = "\\Program Files\\notesw32"; char Fname = "C:\\Program Files\\notesw32\\notes.ini"; char Bakname = "C:\\Program Files\\notesw32\\notesini.bak";`
But for win 7 , these files will be present in c:\Program Files (x86) folder. How do i make sure my code works for both xp and win 7? Can anyone help me with this? Can an environment variable be used? If so, How do i use it because i have never used it and am new to c programs. Thanks in Advance.