Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

88
Vistas
Why is NW.SHELL only wokring in root DIR of app?

For some reason NW.SHELL fuctions are only working for files in root folder of my app. It wont let me use an absolute path or a relative path. Example "/relative/path/text.txt" or D:/relative/path/text.txt however text.txt will work with NW.SHELL function as long as the text file is in the same root DIR obviously.

This applies to both of these. What can i do to get relative or absolute paths to work? preferably relative paths. The nature of my program relative would be most functional.

nw.Shell.showItemInFolder('test.txt');
nw.Shell.openItem('test.txt');
about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Using version 0.65.0 of NW.js, it does work with absolute paths.

const path = require('path');
nw.Shell.openItem(path.resolve('./test.txt'));

If that doesn't work, test.txt is not in the current working directory.

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda