Here is the python code to do that
```python
import os

# enter the directory path
dir1 = "/path/to/dir1"
dir2 = "/path/to/dir2"

# iterate through both directories
for file1, file2 in zip(sorted(os.listdir(dir1)), sorted(os.listdir(dir2))):
    if file1.endswith('.csv') and file2.endswith('.csv'):
        cmd = ['cmd1', os.path.join(dir1, file1), os.path.join(dir2, file2)]
        os.system(' '.join(cmd))
```
นี่คือโค้ดหลามที่ต้องทำ ```python import os # ป้อนเส้นทางไดเรกทอรี dir1 = "/path/to/dir1" dir2 = "/path/to/dir2" # วนซ้ำผ่านทั้งสองไดเรกทอรีสำหรับ file1, file2 ใน zip (sorted(os.listdir(dir1)), sorted(os.listdir(dir2))): ถ้า file1.endswith('.csv') และ file2.endswith('.csv'): cmd = ['cmd1', os.path.join(dir1, file1), os.path.join(dir2, file2)] os.system(' '.join(cmd)) ```
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence