Batch file question
I am trying to write a batch file that will move a file to a folder named after the file. For example:
File is data03.ext
I want to move this file to a folder named data03 This folder will have to be created by the batch file.
Each time this batch file will be run it will be a different filename it is looking for, but same extension. The next time it would be run, the file would be data04.ext so the folder would be data04 The search could be easy enough, just *.ext since it will be the only one in the directory.
If this is not possible, can I have a batch file make a folder named with date/time? Like a MMDDTTTT format, so a folder made on 16 AUG at 1400 (24 hour time set) would be named 08161400
[757 byte] By [
Dam1an] at [2007-11-20 0:34:02]

# 1 Re: Batch file question
Batch file would be very limited. It would not be able to return the filename without the extension so that a folder could be created.
Do you know any basic languages?
# 2 Re: Batch file question
If I am to do it, I would probably create a program that will do the dirty jobs and use that batch file as trigger.
aio at 2007-11-10 3:40:30 >

# 3 Re: Batch file question
If I am to do it, I would probably create a program that will do the dirty jobs and use that batch file as trigger.
Exactly.
I would suggest something basic like Visual Basic. Or maybe even a client scripting language such as VBScript.