
import os
import sys

def check_path(path):
    print(f"Checking Path: {path}")
    if os.path.exists(path):
        print(f"  [OK] Path exists.")
        if os.path.isdir(path):
            print(f"  Contents: {os.listdir(path)[:10]}")
    else:
        print(f"  [Error] Path does NOT exist.")

if __name__ == "__main__":
    if len(sys.argv) > 1:
        for path in sys.argv[1:]:
            check_path(path)
    else:
        print("Usage: python check_win_paths.py <path1> <path2> ...")
        # Example paths (Generic)
        check_path(r"C:\Program Files (x86)\Rithmic\Rithmic Trader Pro")
