Sorry, I missed the name of the text file you want to list.
Set SLPT variable like this :
SLPT := '/c copy c:\list.txt ' + PrinterName // c:\list.txt is the name of
the textfile.
Then use this line :
ShellExecute(Application.Handle, 'open', PChar('cmd.exe'), PChar
(SLPT), 'c:\', SW_SHOWMINNOACTIVE);
The unit for ShellExecute is ShellApi.
--
WinMENTOR Team (http://www.winmentor.ro)
__________________________________________________
Delphi-Talk mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi-talk