[help] basic batch file

Can someone please post a simple batch or cmd file that creates a new folder within the currently resided directory. I need it for Hot Keyboard. Plusses would be able to create folder on desktop when no window is selected and if It would let me rename it right after it is created.

I don't know how hard this is, so if this is prudent to ask for this, I apologize in advance.

#222344

Have you tried calling the mkdir command, available via the command prompt or the "Run..." window?

For more info, just type mkdir /? at a command prompt.

#222488

Whoah sorry Stevie, I know DOS but nothing about batch files. So do I just type in commandlines in notepad and save them?

#222505

MKDIR or MD (Use either.. they do the same thing)

Creates a directory.

MKDIR [drive:]path

MD [drive:]path

If you exclude the [drive:] the command assumes the current drive and directory you are in when executing the command.

If you are in C: and type md temp, it will create a folder called temp at the root of c:

C:temp

Adding the drive letter or fully qualifying the path for example: md d:tempnewdir

will create D:tempnewdir regardless of where it is executed from. It will also create the entire structure if it's not already present. Using the above example, if the temp directory did not exist, the above command would have created the full path, i.e. both the temp and it subdirectory, newdir.

Take this text and paste it in notepad.

md "New Folder"

now save it as a text file and change the extension from .txt to .bat

This batch file will create a directory called New Folder in whatever directory it's executed from.

#222513

Thanx man. I had no idea that it's that easy.

By the way, this is for defining my own hotkeys...

I haven't seen a complete tutorial on this and it seems every app that says it can create them, they fall flat.

Any info would be appreciated.

Thanx again.

#222538