Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: need help to solve this problem  (Read 2372 times)

0 Members and 1 Guest are viewing this topic.

yu262691

  • Guest
need help to solve this problem
« on: January 07, 2008, 02:01:40 PM »
hi all

I got a special task to be handled by batch program.

this task is to delete subfolders in one location if the name of those folder exist in another location with format of name.oam.

for example:

folder "job"
--->1
--->2
--->3

folder "script"
--->1.oam
--->2.oam
--->3.oam

for each subfolder in "job
   if this subfolder's name equals file name(without .oam) in folder "script"
        delete this subfolder
   end if
end for

I think I might need nested for look to handle this task. can some one help me with this code? I am not good at batch programming.

yu262691

  • Guest
Re: need help to solve this problem
« Reply #1 on: January 08, 2008, 07:24:46 PM »
can anyone at least give a hint please?