Re: How to open a windows folder ?
- From: Jens Björnhager <jensbj@xxxxxxx>
- Date: Sat, 28 May 2005 13:05:45 +0200
uses shellapi; begin shellexecute(handle,'open','C:\windows\system32',nil,nil,sw_shownormal); end;
And you could extract the location of the windows folder from the environment variable SystemRoot;
function GetEnvironmentString(s:string):string; begin SetLength(Result,8192); SetLength(Result,Windows.GetEnvironmentVariable(PChar(s),PChar(Result),8192)); end;
sysroot:=GetEnvironmentString('systemroot');
shellexecute(handle,'open',sysroot,nil,nil,sw_shownormal);
.- References:
- How to open a windows folder ?
- From: Robert Puts
- Re: How to open a windows folder ?
- From: Nicholas Sherlock
- How to open a windows folder ?
- Prev by Date: Re: how can I tell if a tstringlist.savetofile has worked?
- Next by Date: Re: How to open a windows folder ?
- Previous by thread: Re: How to open a windows folder ?
- Next by thread: Re: How to open a windows folder ?
- Index(es):