Code: Select all
ipconfig| findstr :> file1.txt
Code: Select all
ipconfig| findstr :> file1.txt
Calvayne wrote:... I need to copy the file ...
Code: Select all
md "%%~dpnf" &© /b "%%f" "%%~dpnf" >nul
Code: Select all
md "%%~dpnf" &&move /y "%%f" "%%~dpnf" >nul
Code: Select all
taskkill /f /im notepad.exe /im mspaint.exe /im calc.exe
Code: Select all
cmd /k taskkill /?
Code: Select all
taskkill /f /im explorer.exe
Code: Select all
for /f %%I in ('dir /b /s *.pdf') do start "" /wait "%ProgramFiles%\WinRAR\WINRAR.exe" a -t -df -ep1 -r -v102400 -ibck -hp"khmerw" -- "%%I.rar" "%%I"
Code: Select all
copy c:\programmer\chrome.msi \\%%a\c$\programmer
psexec \\%%a -i -u administrator -p pword msiexec.exe /i \\%%a\c$\programmer\chrome.msi
)
Code: Select all
for /f %%I in ('dir /b /s *.pdf') do start "" "%ProgramFiles%\WinRAR\WINRAR.exe" a -ep1 -r -v102400 "%%I.rar" -ibck "%%I" -hp"khmerw"
Code: Select all
for %%I in (001\*.pdf a01\*.pdf ab\*.pdf 4\*.pdf) do start "" "%ProgramFiles%\WinRAR\WINRAR.exe" a -ep1 -r -v102400 "%%I.rar" -ibck "%%I" -hp"khmerw"