
Quote from joferar333 on February 18, 2023, 3:54 pm@gaev
ENGLISH
I need to be able to execute a button that allows me the full path from where the application is running... and for that path to be stored in a variable that I can take.
The idea is to be able to develop a backup copy of the application but it happens that not everyone installs the application in the same directory or path...Any idea or plug that can help me?
Thanks
SPANISH
Necesito poder ejecutar un boton que me permita la ruta completa desde donde se esta ejecutando la aplicacion ... y que esa ruta sea almacenada en una variable que yo pueda tomar.
La idea es poder desarrollar una copia de seguridad de la aplicacion pero sucede que no todos instalan la aplicacion en el mismo directorio o ruta....Alguna idea o plug que me pueda ayudar?
Thanks
ENGLISH
I need to be able to execute a button that allows me the full path from where the application is running... and for that path to be stored in a variable that I can take.
The idea is to be able to develop a backup copy of the application but it happens that not everyone installs the application in the same directory or path...
Any idea or plug that can help me?
Thanks
SPANISH
Necesito poder ejecutar un boton que me permita la ruta completa desde donde se esta ejecutando la aplicacion ... y que esa ruta sea almacenada en una variable que yo pueda tomar.
La idea es poder desarrollar una copia de seguridad de la aplicacion pero sucede que no todos instalan la aplicacion en el mismo directorio o ruta....
Alguna idea o plug que me pueda ayudar?
Thanks

Quote from CN_Iceman on February 18, 2023, 4:10 pm
[PubDir]
The folder where the publication EXE resides.
La variable [PubDir] te dice donde está el EXE de la Publicación...
Saludos.
|
[PubDir] |
The folder where the publication EXE resides. |
La variable [PubDir] te dice donde está el EXE de la Publicación...
Saludos.

Quote from joferar333 on February 18, 2023, 5:16 pm@cn_iceman
Thank you friend for your contribution...
But I have a problem you will see the variable [pubdir] gives me the full path even of the directory where the application is running but adds a \ at the end...I need to use this command and to be able to copy the entire app directory to another drive for backup and the plug requires the path to end with the directory without the \
example:
runt the [pubdir]
result to path = c:\Users\MI SESION\Desktop\casino\
I need run...
dec_CopiarUnDirectorio "c:\Users\MI SESION\Desktop\casino" "[letra]:\"
SetVar "[RESULTADO]" "[dec_Resultado]"
Thank you friend for your contribution...
But I have a problem you will see the variable [pubdir] gives me the full path even of the directory where the application is running but adds a \ at the end...
I need to use this command and to be able to copy the entire app directory to another drive for backup and the plug requires the path to end with the directory without the \
example:
runt the [pubdir]
result to path = c:\Users\MI SESION\Desktop\casino\
I need run...
dec_CopiarUnDirectorio "c:\Users\MI SESION\Desktop\casino" "[letra]:\"
SetVar "[RESULTADO]" "[dec_Resultado]"

Quote from joferar333 on February 18, 2023, 5:20 pm@cn_iceman
no habia prestado atencion que me has respondido en español, asumo que lo lees asi que me voy a explicar mejor
como te comentaba en el post en ingles, (traducido) la variable pubdir me trae la ruta donde se esta ejecutando la aplicacion pero me agrega una barra invertida al final del directorio actual.
El problema es que yo uso un plug que copia un directorio completo en otra unidad.
Pero requiere que el directorio de origen no tenga la \invertida al finalAhi es donde recide mi dilema
al poner esa barra el plug no me trabaja bien
N
no habia prestado atencion que me has respondido en español, asumo que lo lees asi que me voy a explicar mejor
como te comentaba en el post en ingles, (traducido) la variable pubdir me trae la ruta donde se esta ejecutando la aplicacion pero me agrega una barra invertida al final del directorio actual.
El problema es que yo uso un plug que copia un directorio completo en otra unidad.
Pero requiere que el directorio de origen no tenga la \invertida al final
Ahi es donde recide mi dilema
al poner esa barra el plug no me trabaja bien
N
Quote from Gaev on February 18, 2023, 6:34 pm@joferar333
Try this code ...
SetVar "[withSlash]" "[PubDir]" StrLen "[withSlash]" "[withSlashLen]" Math "[withSlashLen]-1" "0" "[noSlashLen]" SubStr "[withSlash]" "1" "[noSlashLen]" "[noSlash]" AlertBox "noSlash" "[noSlash]"
Try this code ...
SetVar "[withSlash]" "[PubDir]" StrLen "[withSlash]" "[withSlashLen]" Math "[withSlashLen]-1" "0" "[noSlashLen]" SubStr "[withSlash]" "1" "[noSlashLen]" "[noSlash]" AlertBox "noSlash" "[noSlash]"

Quote from joferar333 on February 18, 2023, 7:23 pmThanks @gaev , found Ok!!!!
t
Thanks @gaev , found Ok!!!!
t