gvSIG bugs #4316

gvsig-desktop.vbs: Unable to find the requested file

Added by Antonio Falciano over 7 years ago. Updated over 7 years ago.

Status:Invalid% Done:

0%

Priority:HighSpent time:-
Assignee:Joaquín del Cerro Murciano
Category:Application
Target version:2.3.0-2442 (rev. org.gvsig.desktop-2.0.149)
Severity:Blocker Add-on version:
gvSIG version:2.3.0 Add-on build:
gvSIG build:2441 Add-on resolve version:
Operative System:Windows Add-on resolve build:
Keywords: Proyecto:
Has patch: Hito:
Add-on name:Unknown

Description

Sometimes If I try to execute win64 gvSIG portable double-clicking on the gvsig-desktop.vbs file, the following error appears:

The error is due to the second row of gvsig-desktop.vbs:

shell.CurrentDirectory = "${INSTALL_PATH}" 
In fact, ${INSTALL_PATH} doesn't exist on Windows. I suggest to replace it with:
shell.CurrentDirectory = CreateObject("Scripting.FileSystemObject").GetParentFolderName(Wscript.ScriptFullName)

Source: https://blogs.technet.microsoft.com/heyscriptingguy/2006/04/05/how-can-i-determine-the-path-to-the-folder-where-a-script-is-running/

Related to #4122.

vbs_error.png (211 KB) Antonio Falciano, 08/08/2016 09:49 AM

1720

Related issues

Duplicates Application: gvSIG desktop - gvSIG bugs #4317: gvsig-desktop.cmd: ${INSTALL_DRIVE} is not recognized (in... Closed 08/08/2016

History

#1 Updated by Joaquín del Cerro Murciano over 7 years ago

  • Related to gvSIG bugs #4317: gvsig-desktop.cmd: ${INSTALL_DRIVE} is not recognized (in the portable) added

#2 Updated by Joaquín del Cerro Murciano over 7 years ago

  • Related to deleted (gvSIG bugs #4317: gvsig-desktop.cmd: ${INSTALL_DRIVE} is not recognized (in the portable))

#3 Updated by Joaquín del Cerro Murciano over 7 years ago

  • Duplicates gvSIG bugs #4317: gvsig-desktop.cmd: ${INSTALL_DRIVE} is not recognized (in the portable) added

#4 Updated by Joaquín del Cerro Murciano over 7 years ago

  • Status changed from New to Invalid

#5 Updated by Joaquín del Cerro Murciano over 7 years ago

  • Target version changed from 2.3.0-2447-final (rev. org.gvsig.desktop-2.0.153) to 2.3.0-2442 (rev. org.gvsig.desktop-2.0.149)

Also available in: Atom PDF