Page 1 of 1

bat move file problem

Posted: 12 Sep 2009 23:51
by tirano
what happen if i run my bat in cmd not bad but i 1 run bat file. when run error syntax

Code: Select all

@echo off
for %%I in (*.jpg) do (
  set str="%%I"
  set dire=%str:.jpg=%
  mkdir %dire%
  move "%%I" %dire%
  set rar=%str:.jpg=.rar%
  move %rar% %dire%
)