The original content of the text file i have is only 5 numbers long "17982" and will be always 5 numbers until I reach 100000 And yes the result will be only...
This writes to *.bin and reads from *.txt files. @echo off for /f "delims=" %%a in ('dir "*.txt" /a:-d /o:n /b') do ( for /f "delims=" %%b in ('type "%%a"') do...
Project: to manipulate files in a single folder depending on each file's creation date (compare with a cutoff date). I've approached this with dir with...
... You can use the file date and time stamps in %%~ta with delayed expansion @echo off setlocal enabledelayedexpansion set cutoff=20111206 for /f "delims="...
... Hi Foxidrive I had not even considered that dir /b would contain more information than was displayed. Your script works like a dream when the batch file is...
... add here pushd "D:\0904e\" ... add here popd ... If type FOR /? then on the last page you will see the modifiers using the tilda ~ ... See above for the...
... Marvellous - after I ran it on the correct computer that had the \0904e\ folder! Now for the easy bit. Pass folder id and number of days (for target date),...
Hi Guys 'n Gals. I'm leaving this group because the moderator has left, and left it as a closed group. If anyone needs help for batch files then do feel free...
... The date extracted is the last modified date. Is there a simple alternative to give the date created? Fortunately, in the present project both should be...
On 12/12/2011 02:20, ray_mccormick wrote: I am watching to see any comments from my penultimate post in this group but will then move on to alt.msdos.batch.nt ...
... This doesn't require the filenames to have a period or a filespec. It's significantly different now as searching the subdirectories when parsing a DIR list...
... Hi Foxidrive Thank you for the latest offering. The project is almost complete, using the last modified date, and final checking and implementation is...
Hi all, I am currently using this in a batch file, to clear useless files from my %WINDIR% set unf=%SystemRoot%\$NtUninstall* for /f "Tokens=*" %%i in ('dir /B...
You know? You could get gnu's sort program and use the real thing instead. http://gnuwin32.sourceforge.net/packages/coreutils.htm Cheers ... [Non-text portions...
foxidrive: Please ask the current moderator to add you as an additional moderator. One anonymous moderator for this group is bouncing and the other one has...
That's a big shame, but thanks for your valuable help and for pointing us to some place we can keep getting help from. Cheers ... [Non-text portions of this...
All the command line ZIP utilities I have used have a syntax to zip a list of files contained in a text file. If you do not have one, look for zip and unzip on...
I am using the batch file below, to add 30 domain users to the administrators group of 30 machines. I would really like it though if I could make the batch...
Hi Aristos! Try the following. Run the program and make sure the output is correct before deleting ECHO on the second last line. The two commented lines are...
Hello all i need help with a batch file i wrote a batch file to download a file from an ftp site rename the file then move it over to a folder, for some reason...
Dear Alex, It's difficult to diagnose the problem when I don't know how your particular system is set up. But one or two things leapt out at me. First, I...
Hi Again, I found a great link to a page on DosTips.com all about FTP scripts. http://www.dostips.com/DtTipsFtpBatchScript.php It should resolve all your...
Have anyone done backup using 7zip through a batch file? If so, can you share your batch script with me? If not, can you suggest me how I can do backup with...
Thank you for the information. I have the following command. 7z a -t7z -mx=9 -mtc=on -v20m -r E:\backup.7z @C:\XXX\sekasri\Documents\cmds\7backup\include.lst...
Dear Kailash, Google to the rescue once again... Access Is Denied: http://goo.gl/uMghK Multiple Compressed Folders: http://goo.gl/1i0AW I hope this helps. I...
Is the path for the parameter correct?: @C:\XXX\sekasri Should it be @C:\Users\XXX\sekasri You should only be able to access your own Users folder, and not...