# [texworks] SCRIPTING: Windows Need - short file names

Paul A Norman paul.a.norman at gmail.com
Sun Apr 17 07:47:11 CEST 2011

```Hi,

A Windows Only Solution - short file names.

There are times in LaTeX, operating under Windows, when it is useful to be
able to just insert the short "no spaces" version of a file name or path.

Dialogue box locates a file, and the windows short version of its name, is
inserted in TeXworks document (no spaces in path).

Requires System access -
see:
http://twscript.paulanorman.com/docs/html/files/TexWorksApplicationProgramingI.html

Note: (contains a CSRIPT call to activeX objects - see contained
systemShortName.js)