FULL INSTALLATION PATH / SOBRE RUTA COMPLETA ACTUAL - Forum

Forum Navigation
You need to log in to create posts and topics.

FULL INSTALLATION PATH / SOBRE RUTA COMPLETA ACTUAL

@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

 

[PubDir]

The folder where the publication EXE resides.

La variable [PubDir] te dice donde está el EXE de la Publicación...

Saludos.

luishp and Vadim have reacted to this post.
luishpVadim

@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]"

 

@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 final

Ahi es donde recide mi dilema

al poner esa barra el plug no me trabaja bien

 

N

@joferar333

Try this code ...

SetVar "[withSlash]" "[PubDir]"
StrLen "[withSlash]" "[withSlashLen]"
Math "[withSlashLen]-1" "0" "[noSlashLen]"
SubStr "[withSlash]" "1" "[noSlashLen]" "[noSlash]"

AlertBox "noSlash" "[noSlash]"

 

luishp and rcohen have reacted to this post.
luishprcohen

Thanks @gaev , found Ok!!!!

 

t