Share this page 

Change directoryTag(s): Powerscript


[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.