Microsoft
Software
Hardware
Network
Question : explain script
I have a script that automatically make folders to matching files. I did not write the script, and would like to understand the coding behind it. Can someone break it down for me?
@echo off
for %%a in (*.*) do (
md "%%~na" 2>nul
move "%%a" "%%~na"
)
Answer : explain script
for %%a in (*.*) - for every file put it name as a and do
md "%%~na" 2>null - make directory of name a without extension ( ~n ) and do not display error ( 2> null)
move "%%a" "%%~na" - move every file to his directory
Random Solutions
DTC between windows server 2008 (WEB) & Windows Server 2000 (Standard)
Restricting FTP access to home directory. Windows 2000. IIS.
OSCommerce - How to Backup your Database?
Error =63535
sybase query showplan help
Auto Close Email when you reply
Outlook 2007 closing down randomly
Ghost claims C drive is unmounted
Refresh button in OWA with Exchange 2007 SP1
Problems with Outlook 2000 and Windows Mail on Vista Home