(how's everyone doing)Hopefully this thread is the right place for my problems
. If not: let me know
Since my initial question about how to move/sort files, based on the file's date, i've been experimenting a lot with FOR loops and tokens.
The code/help abc0502, Ed Dyreen and foxidrive gave were a good starting point for me to play around with it and modify it even further to my needs.
Unfortunately, new problems have arised and i haven't yet been able to tackle/solve them.The situation
is as followed:
I have a script that logs some statistics of a batch program i've made.
Whenever someone uses the program, it uploads a file which has the following format:ip - name - version of script.txt
Now, at the time i created this topic i was looking for a way to somehow sort the files, based on their date of creation.
Because of some very helpful people, i was (am) able to sort/categorize this.
But.. i want to take it a step further
: i would like the sorted files to be moved into a (sub)folder that is based on the IP address
that is in the filename.
And because i don't want to come over as a prat (again), i'll share my fail
code with you....
Oh, the code is far from complete, but its all i have for now:
FOR %%A IN (
) DO SET "FULL=%%A" &FOR /F "tokens=1 delims= " %%B in (
) DO SET SHORT=%%B &(
Besides being a noob/newb that tries to achieve something (and fails miserably), i'm trying to get the value FULL
pupulated with the results of %%A
, so that i can work on a way to move the sorted txt %%A
into its (sub)folder that is based on the variable %%B
Of course, i'm doing it totally wrong and the variables %FULL%
Again, i hope that someone is willing enough to assist/help me (into the right direction).
I've never asked (nor will i) someone to write a complete/full working code/script, i just want to make something work(ing), but simply aren't talented/skilled enough to do it on my own.. :/
Best regards (from The Netherlands)