PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

  • SOAP server
  • Application used in Windows Vista (and later)
  • Path of a system directory
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Returns the directory from which the execution is started.
WEBDEV - Server code Returns the runtime directory of the project. This directory must be accessible in read/write mode. In most cases, it contains the data files and the other files handled by the WEBDEV site.
Caution: fExeDir is used to find out the runtime directory while fCurrentDir is used to find out the current directory.
Example
// Runtime directory
Info("This application is started from " + fExeDir())
Syntax
<Result> = fExeDir()
<Result>: Character string
Directory from which the executable is run. This path does not end with the "\" character.
  • In test mode (GO from WINDEV), corresponds to:
    • the generation directory given in the description of the current project configuration.
    • the EXE subdirectory of the project directory.
  • At run time, corresponds to the directory containing the current executable.
WEBDEV - Server code Runtime directory of the project. In test mode and in deployment (GO from WEBDEV), corresponds to the EXE sub-directory of the project directory.
AndroidAndroid Widget Setup directory of the application (in the internal storage area).
Universal Windows 10 App Data directory of the application.
iPhone/iPadIOS WidgetMac Catalyst Root directory of application (accessible in read-only).
Remarks
WINDEVWEBDEV - Server codeReports and QueriesAjax

SOAP server

When fExeDir is used on a SOAP server, it returns the path of the directory containing the library of the SOAP server being run.
WINDEVUser code (UMC)

Application used in Windows Vista (and later)

In Windows Vista (and later), the UAC mechanism implies some development constraints.
Therefore, the files used by the application (data files or INI files for example) should be stored in the specific directories of the application (and not in the directory of the executable). These directories are returned by fDataDirCommon, fDataDirUser, fGlobalDirCommon and fGlobalDirUser.

Path of a system directory

To find out the path of a system directory, use SysDir.
Related Examples:
Handling text files Unit examples (WINDEV): Handling text files
[ + ] Handling "text" files with WINDEV:
- Create a text file
- Write into a text file
- Read in a text file
Handling text files Unit examples (WEBDEV): Handling text files
[ + ] This example explains how to handle "non HFSQL" files with WEBDEV and it allows you to:
- Create a text file
- Write into a text file
- Read in a text file
Handling text files Unit examples (WINDEV Mobile): Handling text files
[ + ] Handling external "text" files:
- Create a text file
- Write into a text file
- Read in a text file
Component: wd270vm.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
exemplo pegar pasta local
https://windevdesenvolvimento.blogspot.com/2021/06/dicas-3348-windev-webdev-mobile-windev.html
https://youtu.be/495RvqL4j20
Esse Video vai estrear as 10:00 do dia 11/06/2021
sNome_pasta is string=fExeDir()+"\copia\"
sArquivos_retorno is string=fListFile(sNome_pasta+"*.*") // Vamos ver quais arquivos estao nesse diretorio
LIST_arquivos.DeleteAll() // Cria o list box, -: é opcional

sNome_arquivo_zip is string="arquivo"
zipCreate(sNome_arquivo_zip,fExeDir()+"\"+sNome_arquivo_zip+".zip")

FOR EACH STRING sArquivo_individual OF sArquivos_retorno SEPARATED BY CR
LIST_arquivos.Add(sArquivo_individual) // adiciona no list box para ver os arquivos é opciona
zipAddFile(sNome_arquivo_zip,sArquivo_individual,zipDrive)
END
IF CBOX_criar_Executavel=True THEN
NOME_ARQUIVO_eXE is string=fExeDir()+"\"+sNome_arquivo_zip+".exe"
zipCreateExe(sNome_arquivo_zip,NOME_ARQUIVO_eXE,zipCurrentDirectory)
END
zipClose(sNome_arquivo_zip)
amarildo
06 Jun. 2021