Windows app that creates files with $ in filename?

Questions about Wine on Linux
Post Reply
msetzerii
Level 2
Level 2
Posts: 27
Joined: Tue May 12, 2020 2:45 pm

Windows app that creates files with $ in filename?

Post by msetzerii »

Have a windows Program Pegasus Mail that works fine on its own, but has an extension that will cause crashes.
The Pegasus Program creates a number of files that contain $ in filenames. Few letters $ few more then extention that ends with $.
The addon IERenderer will crash. Wondering if it might be the passing of filenames between the Program EXE file and the IERENDERER.DLL.

Know in DOS/WINDOWS the $ was a common character used in filename created for temporary use, but in Linux they represent variables.

Not sure if using a different character in filenames might solve problem. Say using an "_" instead of "$".
User avatar
KenSharp
Level 4
Level 4
Posts: 174
Joined: Mon Jul 13, 2009 8:52 pm

Re: Windows app that creates files with $ in filename?

Post by KenSharp »

With regards to https://bugs.winehq.org/show_bug.cgi?id=58304 (and to keep the mailing list quiet):

You can

Code: Select all

rm -r ~/.wine
and start with a fresh wineprefix, you don't have to manually uninstall IE8. Obviously don't do that if you have anything important in your wineprefix. For testing you can set it to anything you like.

Code: Select all

WINEPREFIX=~/testing wine foo.exe
Also you don't need to install winetricks, it's just a script.
https://gitlab.winehq.org/wine/wine/-/w ... winetricks
ibdave
Level 2
Level 2
Posts: 16
Joined: Mon Apr 24, 2023 7:13 pm

Re: Windows app that creates files with $ in filename?

Post by ibdave »

Anyway to specify prefix/suffix to filenames - such as a single or double quote for each - so that the entire name is just treated as a string? Anyway to escape the $ - such as \$ - so the $ is treated like a normal character?
User avatar
KenSharp
Level 4
Level 4
Posts: 174
Joined: Mon Jul 13, 2009 8:52 pm

Re: Windows app that creates files with $ in filename?

Post by KenSharp »

ibdave wrote: Wed Jul 16, 2025 10:31 pm Anyway to specify prefix/suffix to filenames - such as a single or double quote for each - so that the entire name is just treated as a string?
Sorry, I don't know what you mean by this. Do you mean so that the system knows whether or not to single or double quote a filename?
ibdave wrote: Wed Jul 16, 2025 10:31 pm Anyway to escape the $ - such as \$ - so the $ is treated like a normal character?
I would expect \$ to do it, but with Bash (for example) if you use single quotes it should be passed to the application as-is.

Code: Select all

$ wine program.exe 'myfile.$$$'
Does this work for you?
Post Reply