in reply to CD and EXE

Use the full path to 'bar.exe'
system( `/Foo/bar.exe` );