The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: oex on March 28, 2010, 10:13:49 PM

Title: File Path
Post by: oex on March 28, 2010, 10:13:49 PM
I want to get the msdos style file path ie the one with the tilde ~ rather than a full length file path.... I have created the file with the full path how do I requery/convert....

Also I want to set default screensaver.... Do I just set this key in the registry or is there more to it?
HKCU/Control Panel/Desktop/SCRNSAVE.EXE
Title: Re: File Path
Post by: donkey on March 28, 2010, 10:24:30 PM
This will do it...

http://msdn.microsoft.com/en-us/library/aa364989%28VS.85%29.aspx
Title: Re: File Path
Post by: oex on March 28, 2010, 11:04:42 PM
Nice 1 ty Edgar
Title: Re: File Path
Post by: clive on March 29, 2010, 02:56:28 AM
FirstFirstFile/FindNextFile also provide long/short names as available/appropriate if you want to traverse the directory tree, or look at files.

-Clive