How can I check whether the network drive (or external drive) exists without getting an error message?

Hello EasyMorphUser

My goal is to first check whether the drive and the directory exist before I save the file there. This way I don't run into an error/program crash.

Reading the directory, including subdirectories, and then comparing them with the (parameter) target directory works very well, but the drive or the directory to be checked must exist first.

Example:

  • Programm and Data are in drive c:\xyz or d:\xyz
  • Final-Data to d:\xyz
  • Backup of Final-Data also to external drive s:\xyz if it available

Could someone help me here? Thanks.
With my best regards
Reini

I guess, this is online possible by external command like batch or Python Script.
https://stackoverflow.com/questions/21033801/checking-if-a-folder-exists-using-a-bat-file

1 Like

Hello @Jochen_Marquardt

Solution for me to test the external S:\ Drive are exist - so I can go forward with the "Process Output"

Many thanks for your fast answer Jochen

1 Like