Code: Select all
C:\Windows\System32\WScript.exe "C:\Alex\Bat\unpack.js" "%1"
Holger
Moderators: Hacker, petermad, Stefan2, white
Code: Select all
C:\Windows\System32\WScript.exe "C:\Alex\Bat\unpack.js" "%1"
an attempt at humor, I suppose? Why on earth should it make a difference?petermad wrote:2fixdamnbug
http://img17.imageshack.us/img17/5396/externalassoc.png
What is the content of your unpack.js ? I assume that it is some kind of script or batch file - not a binary...
Because:fixdamnbug wrote:Why on earth should it make a difference?
This detection may also fail if you use a script instead of an executable program!ghisler(Author) wrote:This happens because TC tries to detect whether the configured editor is 16-bit or 32-bit. This function fails because of the extra parameter, therefore TC assumes that it's a 16-bit program, and passes the short 8.3 name to it.
Which in consequence leads to:HolgerK wrote:NtfsDisable8dot3NameCreation is set to 1
So the remaining question is:ghisler(Author) wrote:Indeed when you disable 8.3 names, you have to use the "%1" parameter explicitly, or an editor(not a script!) without parameters.
?C:\Alex\Bat\unpack.js "%1"
Code: Select all
[Extensions]
foo=C:\Holger\Script\test.vbs "%1"
Code: Select all
[Extensions]
foo=C:\Holger\Script\test.vbs "%1" ^.foo
Code: Select all
C:\Holger\Script\test.vbs "%1"
Code: Select all
[Extensions]
foo=C:\Holger\Script\test.vbs " ^.foo
Code: Select all
WritePrivateProfileString("111", "222", "C:\\Holger\\Script\\test.vbs \"%1\"", "F:\\1.ini");
Not confirmed.Then reading the profile string will return just
Code: Select all
C:\Holger\Script\test_%2_.vbs
Code: Select all
C:\Holger\Script\test_%2_.vbs
Code: Select all
C:\Holger\Script\test_%1_.vbs
Code: Select all
C:\Holger\Script\test_
As I wrote: I can't confirm (Win7 x64).ghisler(Author) wrote:The problem exists when a string starts AND ends with a double quote, e.g.
"C:\Holger\Script\test.vbs" "%2"
Then reading the profile string will return just
C:\Holger\Script\test.vbs" "%2
...
Just write it manually to the ini as
""C:\Holger\Script\test.vbs" "%2""