Hi Guys and Girls
I'm currently working on a very simple batch sorting "program" with drag and drop.
But I have a very strange problem. i can't drag and drop more than 38 files. then it says that i do not have permission to the drive, path or file.
i have checked every thing about the permission problem, and i have all rights to the drive, path and files.
Here is the code:
Code:
@echo off
if [%1]==[] goto :eof
:loop
IF NOT EXIST %~dp1SORTERET\ ( MKDIR %~dp1SORTERET )
IF NOT EXIST %~dp1SORTERET\file%~x1\ ( MKDIR %~dp1SORTERET\file%~x1 )
MOVE /Y %1 %~dp1SORTERET\file%~x1\
shift
if not [%1]==[] goto loop
Basically i want the batch file to create a folder called "SORTERET" in the folder where all the files are.
And in that folder create a new folder with the extension name of the file it is handling, ect. exe.
The the folder must be called "file.exe" or even just "exe", why i want it to be called "file" first, is becaus of some of my files have no extension

so when it is handling the "no extension file" it will just create a folder called "file"
Then i want to move the file to that folder.
It is working as planed. but only for 38 files at a time.
What i want it to do is sorting my mixed files folder with more than 1000 files in it.