I have multiple files in one folder (1_ppt.csv, 2_ppt.csv, 3_ppt.csv,...). I have their corresponding empty folders as (SIM1, SIM2, SIM3,...). I want to copy the 1_ppt.csv to SIM1 folder, 2_ppt.csv to SIM2 folder,...so on. I tried it using cmd command, it works; however, it requires the file and folder names to be same, so its not useful. I will really appreciate if I can get a python solution to this.
Used these cmd commands so far.
[for %i in (*) do mkdir "%~ni"]
[for %i in (*) do move "%i" "%~ni"]