The pipe was an error on my part.

The “U:” drive was mapped to a network share.

I’ve done some more testing after reviewing the thread and have found by issuing a dir command from a command window, using the correct drive and path I received an error “The filename or Extension is too long.”

I then used the dir command with the /x option to generate the short names for the path and file, which produced:
U:\user\projects\DOCUME~1\RATECH~1\COMMER~1\2082F9~1\200509~1\RECIMB~1.MSG

When I changed the script to:

break on
cls
$v1="U:\user\projects\DOCUME~1\RATECH~1\COMMER~1\2082F9~1\200509~1\RECIMB~1.MSG "

? "get size"
? GetFileSize( $v1 )
? len(GetFileSize( $v1 ) )
? "get time "
? getfiletime($v1,1)
? len(getfiletime($v1,1))

exit

I received the expected results of:


get size
103936
6
get time
2005/09/19 09:43:00
19

I’ll be looking for &/or writing a UDF to convert longer paths and files to a short name.