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
Phong Shading
Using ADO instead of DAO
Agent Push
Forms 6i Setup
Write a Windows DHCP server in Python?
How do I open port 443 on ISA Server 2004 for Outlook Web Access from Exchange Server 2007?
T-SQL Inport/Export data to SQL/CSV without using SSIS
illegal operation when closing excel files
No data found in report
SQL Query and calculation statement