system "cd && type file"; ## or system "ver && type file"; ## or system "type file > CON"; #### C:\test>U:type.exe -h Usage: U:type.exe -v ==> version U:type.exe -h ==> usage U:type.exe -help ==> help U:type.exe file(s) ==> path to a file(s) C:\test>U:type.exe -help The C:\WINDOWS\System32\UnixTools\type.exe program will display the path to a file if it is in the PATH environmental variable