Search found 3 matches

by Sanders_2503
11 Oct 2011 16:16
Forum: DOS Batch Forum
Topic: DOS script to pass sub-folder name dynamically
Replies: 1
Views: 2314

Re: DOS script to pass sub-folder name dynamically

I figured it out. Instead of passing the -o parameter if we just mention C:\7za.exe e C:\Downloads\Prevalidation*.zip then it will extract the files to the folder where I am running the batch script from. Then I am moving these *.psa files to my desired location and running my dir and del commands s...
by Sanders_2503
11 Oct 2011 12:24
Forum: DOS Batch Forum
Topic: DOS script to pass sub-folder name dynamically
Replies: 1
Views: 2314

DOS script to pass sub-folder name dynamically

I am using 7zip in my dos script to extract a zip file but then 7-zip creates a sub folder (with the same name as that of the zip file) to store the files extracted. Eventually, I want to scan the folder with extracted files in it and create a file with the file name and timestamps of the files crea...
by Sanders_2503
05 Oct 2011 11:58
Forum: DOS Batch Forum
Topic: How do you read a filename and substring it to variables
Replies: 2
Views: 2959

How do you read a filename and substring it to variables

I am very new to DOS programming but have been doing Unix for a while. This may sound a very basic problem to the experts, so please excuse my naivity. Heres the problem - Say I have 500 files in a folder with their file names in 1-12345-12345678 format. I got to read each file names to a single var...