Delphi Programming RTL Reference|By Category|Alphabetically|By Unit
function SetCurrentDir(const sNewDir:string): boolean;
Sets the current directory.
Function returns True if the directory specified in sNewDir was successfully set as the curent, False otherwise.
var sAppDir : string;
//app path
sAppDir := ExtractFileDir(ParamStr(0));
if Not SetCurrentDir(sAppDir) then
raise Exception.Create
('Unable to set current dir.');
|
GetDir,
GetCurrentDir,
|
Free Delphi code snippet inside every Delphi Newsletter! |
|
|
|
Got some code to share? Got a question? Need some help? |
|
|