Messages - DyNama [ switch to compact view ]

Pages: prev1 2 3 4 5 [6] 7 8 9 10 11 ... 15next
26
Finished Programs / Re: DONE: Sync folders by renaming files
« on: June 06, 2013, 03:55 AM »
OMG, this program keeps getting better! i never thot to ask for logging and undo files! works great! now there's less fear that i enter the source and destination folders backwards accidently.

27
Finished Programs / Re: DONE: Sync folders by renaming files
« on: June 05, 2013, 12:57 PM »
i thot maybe the space in the path C:\My Stuff\RenSS\RenSSDTv7.cmd was bothering the log file so i replaced every instance of
%~dp0%RenSSDT.log
with
"%~dp0%RenSSDT.log"
and voilà! it created the log file and logs every rename! but if
choice /c ny /m "View logfile"
is supposed to ask me if i want to view the log, it still doesn't. it echos a "goto" in the CMD window and then closes.

28
Finished Programs / Re: DONE: Sync folders by renaming files
« on: June 05, 2013, 12:13 PM »
so is it actually checking all 3 criteria, size, date, and checksum?

No - you said it wasn't finding any matches when it used the checksums, so that's not in this version.  It's just size, date and time.

Besides unless I can find a way to get it to work with Delayed Expansion enabled and ! in filenames I can't use the MD5 routine since it relies on Delayed Expansion.

That's okay, that explains how it is so fast!

V7 Added log file and option to display at end, (written to same folder as batch file), it just keeps getting bigger until you delete it

i love logs! unfortunately my 2 runs of RenSSDTv7 did not make a log. i searched everywhere! the path to the batch file is C:\My Stuff\RenSS\RenSSDTv7.cmd―i put "home-made" stuff in it's own folder cuz Win7 doesn't always let me write to Program Files (x86).

29
Finished Programs / Re: DONE: Sync folders by renaming files
« on: June 04, 2013, 07:57 PM »
done, mouser, from my meager resources.

4wd, wonderful!

so is it actually checking all 3 criteria, size, date, and checksum?

one more request. when RenSS finishes, could it loop back and ask for another extension using the same 2 folders, and only exit when i hit {enter}?

30
Finished Programs / Re: DONE: Sync folders by renaming files
« on: June 03, 2013, 12:30 PM »
just a few minor changes. i can do Echos! is there any way it can announce how many files were checksummed and how many were renamed?

yep, mouser, it's all good!

Code: Text [Select]
  1. @if (@CodeSection == @Batch) @then
  2.  
  3.     @echo off
  4.     setlocal EnableExtensions
  5.     setlocal DisableDelayedExpansion
  6.    
  7.     echo Choose Source Folder
  8.     for /F "delims=" %%S in ('CScript //nologo //E:JScript "%~F0"') do (
  9.         if %%S=="" exit
  10.         set srce=%%S
  11.     )
  12.     echo _
  13.     echo Source folder: "%srce%"
  14.     echo Choose Destination Folder
  15.     for /F "delims=" %%D in ('CScript //nologo //E:JScript "%~F0"') do (
  16.         if %%D=="" exit
  17.        set dest=%%D
  18.     )
  19.     echo Destination folder: "%dest%"
  20.     set /P ext=Please enter extension [eg. jpg]:
  21.     if %ext%=="" exit
  22.    
  23.     for /r "%dest%" %%a in (*.%ext%) do (call :CheckSize "%srce%" %%~za "%%~fa")
  24. :End
  25.     set srce=
  26.     set dest=
  27.     set ext=
  28.     pause
  29.     exit
  30.  
  31.     :CheckSize
  32.     for /r %1 %%b in (*.%ext%) do (if %2 equ %%~zb call :CheckDate "%~3" "%%~b")
  33.     goto :EOF
  34.  
  35.     :CheckDate
  36.     if "%~t1" equ "%~t2" (
  37.         pushd "%~dp1"
  38.         ren "%~nx1" "%~nx2"
  39.     )
  40.     popd
  41.     goto :EOF
  42.    
  43.     endlocal
  44.  
  45.     End of Batch section
  46. @end
  47.  
  48.  
  49. // JScript section
  50.  
  51. // Creates a dialog box that enables the user to select a folder and display it.
  52. var title = "Select a folder", rootFolder = 0x11;
  53. var shl = new ActiveXObject("Shell.Application");
  54. var folder = shl.BrowseForFolder(0, title, 0, rootFolder);
  55. WScript.Stdout.WriteLine(folder ? folder.self.path : "");

Pages: prev1 2 3 4 5 [6] 7 8 9 10 11 ... 15next
Go to full version