If you need to create FOLDER use
Code: Select all
md "c:\reports\january\thisfolder"
start "" "c:\reports\january\thisfolder"
If you need to create shortcut go to Create folder shortcuts using bat
Code: Select all
md "c:\reports\january\thisfolder"
start "" "c:\reports\january\thisfolder"
Code: Select all
@echo off
cd /d %USERPROFILE%\Desktop
copy *.txt "d:\destination"
Code: Select all
@echo off
for /f "usebackq delims=" %%a in ("ref.txt") do cd /d "%%a"
copy *.doc "d:\destination"
Code: Select all
for /f "delims=" %%a in ('findstr /g:search_list.txt random_list.txt') do dir /s /b "%%~fa" > fullpath.txt
cmd /k shortcut.exe -?jamesfui wrote:Sorry how to you use the shortcut.exe?
I don't knowjamesfui wrote:does it support windows 7 32bit?
shortcut.exe -t "D:\FOLDER"jamesfui wrote:And can bat create FOLDER shortcut?
Code: Select all
@echo off
setlocal enableextensions enabledelayedexpansion
for %%f in (*.txt) do (
cls &color !random:~0,1!!random:~-1!
type "%%f"
ping localhost -n 2 >nul
)
cls &color
echo That's All Folks!
Code: Select all
for /f "delims=" %%f in ('findstr /m /c:"a specific text" "d:\path\*.txt"') do del "%%~ff"
Code: Select all
7z e "d:\full path\archive.zip" -o"%cd%" *.* -r