T
Thom
I'm trying to use shell to execute an old dos based program. This program
takes a binary file and does internal processing and then outputs a text
file based on the processing.
I am choking on the spaces in the valid pathnames.
Any ideas on how to convert from the long file name format to an 8.3 format?
Thank you for any help.
Thom
Here is the code snippet that works in a controlled environment ....ie no
spaces in the path names.
If strTextFileName1 <> "" Then 'make sure the 1st filename is not empty
Dim ProcID As Integer
'create a string to the command path
Dim runString As String
runString = "dcmdump.exe " & strBinFile1 & " > " & strTextFileName1
' Run dcmdump.
ProcID = Shell(runString, AppWinStyle.NormalFocus, True, 8000)
takes a binary file and does internal processing and then outputs a text
file based on the processing.
I am choking on the spaces in the valid pathnames.
Any ideas on how to convert from the long file name format to an 8.3 format?
Thank you for any help.
Thom
Here is the code snippet that works in a controlled environment ....ie no
spaces in the path names.
If strTextFileName1 <> "" Then 'make sure the 1st filename is not empty
Dim ProcID As Integer
'create a string to the command path
Dim runString As String
runString = "dcmdump.exe " & strBinFile1 & " > " & strTextFileName1
' Run dcmdump.
ProcID = Shell(runString, AppWinStyle.NormalFocus, True, 8000)