Search found 5 matches
- 21 Aug 2013 03:07
- Forum: DOS Batch Forum
- Topic: Archiving of Files
- Replies: 6
- Views: 6333
Re: Archiving of Files
Hurray Its done @echo on for /F "tokens=2-4 delims=/ " %%i in ('date /t') do set yyyymmdd=%%k%%i%%j for /F "tokens=1-2 delims=: " %%l in ('time /t') do set hhmm=%%l%%m set FileListDir=D:\PS set FilelistName=PS.txt set Srcfeed=ABC set ArchiveFol=D:\ARCHIVE set TEMPDIR=C:\temp738 r...
- 19 Aug 2013 23:53
- Forum: DOS Batch Forum
- Topic: Archiving of Files
- Replies: 6
- Views: 6333
Re: Archiving of Files
Hi Endoro, Thanks a lot for your reply, But I dont want to use 7Zip to make this happen. I'm looking for a solution where we can zip using our Windows .ZIP file extension. Can you please share an idea on how we can read a line and assign it as path and pick that and archive it as .zip file? Thanks, ...
- 19 Aug 2013 06:03
- Forum: DOS Batch Forum
- Topic: Archiving of Files
- Replies: 6
- Views: 6333
Archiving of Files
Hi Frnds, I want to archive a list of files whose path+File name are in a text file. If any one can explain how this can be achieved will be of great help... Example: 1. Filenames are in a text file like shown below: Source_filelist.txt C:/programfiles/abc.txt D:/source files/src_file.doc D:/Require...
- 19 Aug 2013 00:37
- Forum: DOS Batch Forum
- Topic: Batch Script: Parsing, File List
- Replies: 3
- Views: 3463
Re: Batch Script: Parsing, File List
Thanks a ton foxidrive. Below is the script I wrote to accomplish it. @echo off setlocal enabledelayedexpansion set "parentfolder=%CD%" set srcpath =%1% set mylist =%2% set srcfeed =%3% for /r %srcpath% %%g in (*%srcfeed%*.*) do ( set "var=%%g" set var=!var:%parentfolder%=! echo ...
- 18 Aug 2013 21:25
- Forum: DOS Batch Forum
- Topic: Batch Script: Parsing, File List
- Replies: 3
- Views: 3463
Batch Script: Parsing, File List
Hi Frnds, As I'm very new to Batch scripting, I need your help in accomplishing below job, * I need a script for which I will pass 3 Arguments. 1. Source files path. 2. FIleList.txt name. 3. Source feed name. * Now in script taking the 3rd Argument(source feed name) we should parse through all the f...