bat move file problem

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
tirano
Posts: 8
Joined: 12 Sep 2009 23:44
Contact:

bat move file problem

#1 Post by tirano » 12 Sep 2009 23:51

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%
)

Post Reply