Jump to Real's How-to Main page

Change directory

[FUNCTION DECLARATIONS]
FUNCTION boolean SetCurrentDirectoryA(ref string lpsdir) &
   LIBRARY "kernel32.dll"

[powerscript]
String ls_Directory

ls_Directory = "C:\MyNewDirectory\"

lb_Return = SetCurrentDirectoryA(ls_Directory)
If you're using the PFC, look at of_ChangeDirectory in pfc_n_cst_filesrv.
If you find this article useful, consider making a small donation
to show your supportfor this Web site and its content.

Written and compiled by Réal Gagnon ©1998-2005
[ home ]