I've recently ( at least since 7.03 final ) noticed that dropping a file name to a user tool on the tool bar results in short names ( a.k.a DOS names or aliases ) in the argument list to the tools. The problem is then that the tool uses file names with reduced information, which makes file name processing cumbersome or impossible. On top of this, TC behaves differently when dropping file names to the shell, as opposed to when thits internal toolbar is used.
To reproduce the behaviour:
Using
Windows XP x32 (any version)
Windows Vista x32
Windows Vista x64
Windows scripting host >=5.6 ( XP is usually 5.6, unless the update has been installed )
1) Add an argument catcher to the toolbar. The following code will do:
Code: Select all
<job id="ToolArgument">
<script language="VBScript">
arg = WScript.Arguments(0)
If InStr ( arg, "~" ) Then
result="File name alias"
Else
result="Proper file name"
End If
CreateObject("WScript.Shell").Popup result & " was supplied" & vbCrLf & arg, 12, "DnD tool argument test", vbOKOnly
</script>
</job>
3) See that the file name provided to the tool ( in case the script ) is actually the short alias
You can verify that the system itself handles this properly by:
4) Add a shortcut to the script to the desktop
5) Drag and drop the same file as in the above test and see the proper result.
The expected behaviour is that TC should use the long file names as the shell does.
Last tested on:
Vista x64 SP1
+-- WSH 5.7
+-- TC 7.03 final
Verified on
XP SP2
+-- WSH 5.6
+-- TC 7.03 final
//