File Transfer

Changes to file transfer with Windows™ Vista.

The ProgramFiles folder

As the folder %Program Files% is protected, Vista has introduced the concept of Virtual Store: instead of using the %Program Files% folder, programs will access a special directory. This means that if you use FGL_PUTFILE without a destination, the file will use the %VirtualStore% folder to transfer the file.

The following example would use the virtual folder %VirtualStore%. to transfer the file myFile.txt:
CALL FGL_PUTFILE("myFile.txt","myFile.txt")

Uploading files

Vista will prevent the upload of some files, such as executables or DLLs.

Example:
MAIN
  DISPLAY "upload text file..."
  CALL FGL_PUTFILE("myFile.txt","myFile.txt")
  DISPLAY "... done"
  DISPLAY "upload DLL..."
  CALL FGL_PUTFILE("myFile.dll","myFile.dll")
  DISPLAY "... done"
END MAIN

  $fglrun ft
  upload text file...
  ... done
  upload DLL...
  Program stopped at 'ft.4gl', line number 7.
  FORMS statement error number -8066.
  Could not write destination file for file transfer.

Running GDC as administrator will allow GDC to upload such files to the system.