Search This Blog

Showing posts with label batch. Show all posts
Showing posts with label batch. Show all posts

Monday, February 8, 2016

Useful Batch Files




Batch File Copy  full file names for all files in folder and sub folders to text file.

(replace &gt with )


dir C:\Data\Documents\*.* /b /s /a:-D >  C:\Documents.txt





Batch File: Copy just file name of files in folder to text file:
(replace &gt with )


dir C:\Data\Documents\*.* /o-n-d /b  >  C:\Files.txt

Thursday, February 10, 2011

Map current folder location as a local drive.

@echo off
subst V: /D
subst V: "%CD%"
subst
PAUSE

Wednesday, November 17, 2010

Here is something I have not done in awhile - Cmd batch file

Recently, I have to simply deployment of a services patch with a batch file to uninstall current servce.exe (written in 1.1 .ner framework



: DATE: 11/17/2020 ENG: GLK  
: This batch file uninstalls the Fusion RIS Delivery Service that supports Esker 3.5 FP1

echo.
echo uninstall existing Fusion RIS Delivery Service
%WINDIR%\Microsoft.NET\Framework\v1.1.4322\InstallUtil.exe DeliveryService.exe /u

echo.
IF EXIST EDDSAT.dll echo Unregistering EDDSAT.dll
IF EXIST EDDSAT.dll %WINDIR%\SYSTEM32\RegSvr32.exe EDDSAT.dll /u 



And then  I used this batch to register the service again. 


 : DATE: 11/17/2020 ENG: GLK 
: This batch file installs the new Fusion RIS Delivery Service that supports Esker 5.0

echo.
echo installing new Fusion RIS Delivery Service
%WINDIR%\Microsoft.NET\Framework\v2.0.50727\InstallUtil.exe DeliveryService.exe

echo.
echo Registering EDDSAT.dll
%WINDIR%\SYSTEM32\RegSvr32.exe EDDSAT.dll