Welcome Guest.   Make a donation to an author on the site October 25, 2014, 02:04:23 AM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
The N.A.N.Y. Challenge 2011! Download 30+ custom programs!
   
  Forum Home Thread Marks Chat! Downloads Search Login Register  
  Show Posts
      View this member's profile 
      donate to someone Donate to this member 
Pages: Prev 1 2 3 4 [5] 6 7 8 9 10 ... 133 Next
101  DonationCoder.com Software / Post New Requests Here / Re: Simple Utility to find the value of a specific key in Windows Registry on: July 17, 2014, 02:46:30 AM
As an exercise in futility, (skwire's version will be much better), here's something in DOS, (XP+):

Formatted for Generic Code with the GeSHI Syntax Highlighter [copy or print]
  1. @echo off
  2.  
  3. if "%PROCESSOR_ARCHITECTURE%"=="AMD64" goto X64
  4.  
  5. :X86
  6. echo.X86 Architecture
  7. for /f "usebackq delims={,} tokens=2" %%a in (`reg.exe query HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall`) do (call :testOffice %%a)
  8.  
  9. goto :END
  10.  
  11. :X64
  12. echo.X64 Architecture
  13. for /f "usebackq delims={,} tokens=2" %%a in (`reg.exe query HKEY_LOCAL_MACHINE\Software\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall`) do (call :testOffice %%a)
  14.  
  15. goto :END
  16.  
  17.  
  18. :testOffice
  19. set temp=%1
  20. set test=%temp:~24,12%
  21. set office=D000000FF1CE
  22. if %test%==%office% call :officeFound %temp%
  23. goto :EOF
  24.  
  25. :officeFound
  26. for /f "delims=- tokens=2,3" %%b in ("%~1") do (call :officeType %%b %%c)
  27. goto :EOF
  28.  
  29. :officeType
  30. set ctroff=008C
  31. set onedr=00BA
  32. if %1==%ctroff% echo.Click-to-Run MS Office
  33. if %1==%onedr% call :oneDrive %2
  34. goto :EOF
  35.  
  36. :oneDrive
  37. set salone=0000
  38. if %1==%salone% (
  39. echo.Stand-alone OneDrive MS Office
  40. ) else (
  41. echo.Office 2013 version of MS Office
  42. )
  43. goto :EOF
  44.  

Fixed and tested with some fake reg keys - seems to work.
102  Main Area and Open Discussion / General Software Discussion / Re: Filter and order folders by the date of original creation time on: July 16, 2014, 03:00:13 AM
Search My Files
103  Main Area and Open Discussion / Non-Windows Software / Re: Android: Looking for true app data backup solution on: July 15, 2014, 05:15:14 AM
A question: Even after paying for ROM Toolbox Pro, you're still prompted to buy more within the program?

BTW, I know why you guys really bought it Grin

[attachthumb=1]
104  Main Area and Open Discussion / Living Room / Re: Raspberry Pi's $35 Linux PC on: July 14, 2014, 06:19:10 AM
New Raspberry Pi Model B+

[attach=1]

Quote
What's the same:

  • Same Broadcom BCM2835 Chipset
  • Same 512MB RAM
  • Same full size HDMI port
  • Same 10/100 Ethernet port
  • Same CSI camera port and DSI display ports
  • Same micro USB power supply connection

What has changed:
  • Now comes with 4 USB ports so you can now connect more devices than ever to your Raspberry Pi.
  • There is a 40pin extended GPIO so you can build even bigger and better projects than ever before. The first 26 pins are identical to the Model B to provide 100% backward compatibility for your projects.
  • Micro SD slot instead of the full size SD slot for storing information and loading your operating systems.
  • Advanced power management:
  • You can now provide up to 1.2 AMP to the 4 USB ports – enabling you to connect more power hungry USB devices without needing an external USB hub. (This feature requires a 2Amp micro USB Power Supply)
  • The B+ board now uses less power (600mA) than the Model B Board (750mA) when running
  • Combined 4-pole jack for connecting your stereo audio out and composite video out

Please note: The Raspberry Pi Model B+ is laid-out differently to the previous Raspberry Pis and existing enclosures and crusts (daughter boards) may not fit. Checkout the data sheet downloads below.

Specifications:
  • Chip: Broadcom BCM2835 SoC
  • Core Architecture: ARM11
  • CPU: 700 MHz Low Power ARM1176JZFS Applications Processor
  • GPU
  •    Dual Core VideoCore IV® Multimedia Co-Processor
  •    Provides Open GL ES 2.0, hardware-accelerated OpenVG, and 1080p30 H.264 high-profile decode
  •    Capable of 1Gpixel/s, 1.5Gtexel/s or 24GFLOPs with texture filtering and DMA infrastructure
  • Memory: 512MB SDRAM
  • Operating System: Boots from Micro SD card, running a version of the Linux operating system
  • Dimensions: 85 x 56 x 17mm
  • Power: Micro USB socket 5V, 2A
  • Ethernet: 10/100 BaseT Ethernet socket
  • Video:
  •    HDMI (rev 1.3 & 1.4)
  • USB: 4 x USB 2.0 Connector
  • GPIO Connector:
  •    40-pin 2.54 mm (100 mil) expansion header: 2x20 strip
  •    Providing 27 GPIO pins as well as +3.3 V, +5 V and GND supply lines
  • Camera Connector: 15-pin MIPI Camera Serial Interface (CSI-2)
  • JTAG: Not populated
  • Display Connector: Display Serial Interface (DSI) 15 way flat flex cable connector with two data lanes and a clock lane
  • Memory Card Slot: SDIO
105  DonationCoder.com Software / Finished Programs / Re: DONE: Basic Pop-Up Notice/Reminder Window on: July 14, 2014, 05:22:01 AM
Stickies ?

While not as basic as you want, it does all that and more ... you don't have to use all it's features Wink
106  Main Area and Open Discussion / General Software Discussion / Re: Windows 8 Pro System Image Backup. on: July 14, 2014, 05:18:36 AM
Flash drives come default formatted with the FAT32 filesystem for maximum compatibility between OS' - maximum file size is 4GB.

To store your image, you need to tell your backup program to split into 4GB parts, (some will do it anyway and you tell them otherwise), or format the flash drive as NTFS.

What filesystem is your flash drive using and what backup program are you using ?
107  Main Area and Open Discussion / General Software Discussion / Re: Windows 8 Pro System Image Backup. on: July 13, 2014, 02:57:10 PM
Any decent free backup/imaging software should be able to use a flash drive as a destination, eg. Paragon, AOMEI, etc.

Otherwise, just copy the image files to the flash drive after doing the backup.

Give AOMEI Backupper a go.

Or do you mean you want to create a system image on the flash drive that you can boot off, (eg. a VHD) ?
108  Main Area and Open Discussion / General Software Discussion / Re: which forums you use for PC troubleshooting? on: July 13, 2014, 02:51:59 PM
MSFN
109  DonationCoder.com Software / Finished Programs / Re: DONE: Removing zero length files recursively at command-line on: July 13, 2014, 05:47:31 AM
Formatted for Generic Code with the GeSHI Syntax Highlighter [copy or print]
  1. REM Del0Files.cmd
  2. @echo off
  3. for /f "usebackq tokens=*" %%a in (`dir /os /b /s /a-d-s-h-l "%~1\*.*"`) do (if "%%~za"=="0" del "%%~a")

Call as:

Del0Files.cmd <path>

Change the:

del "%%~a"

to:

move "%%~a" "C:\Zero\%%~na"

if you want to move instead.

Here's a recursive commandline delete empty directory that I got from StackOverflow, (IIRC):

Formatted for Generic Code with the GeSHI Syntax Highlighter [copy or print]
  1. rem Del0Dir.cmd <directory>
  2. @echo off
  3. for /f "usebackq delims=" %%a in (`dir /ad /b /s "%~1" ^| sort /r`) do rd "%%~a" 2>NUL

For cleaning up the dirs after you delete all the files smiley

Test it first, the rd should fail if the directory isn't empty thus skipping it.
110  Main Area and Open Discussion / General Software Discussion / Re: Windows 8 Pro on: July 12, 2014, 10:46:46 AM
I have a retail product key because I bought it from Microsoft Store. The problem is that it's Windows 8 Professional x64 key. I am neither able to download Windows 8.1 Pro nor able to activate it. I keep getting the message, this key is for a different version of Windows.

That's how I got my version of Windows 8 Pro x86 and x64 licenses, from the MS Store.

If you follow the steps given in the post I refer to, (starting at point 1 which refers you to this article at MakeUseOf), you should be able to download a Windows 8.1 Pro ISO.

Looks like the ***holes at MS have neutered that particular form of ISO download now, worked for me when I did it but that was a few months ago.  It might be different if tried from a previous Windows version, (I'm running 8.1 on my netbook so that might be screwing it up), as it says you should.

There's another way but we don't mention BitTorrent around here.  tongue

Basically, if you can get an 8.1 Pro ISO you can activate, (not install), with an 8.0 key.
111  DonationCoder.com Software / Post New Requests Here / Re: IDEA: Image Append - Batch on: July 12, 2014, 10:37:03 AM
Thanks!

Although I missed the part where the images are in pairs in sub-dirs that are named according to page.

I think I would have gone with a folder/issue with images named Page01a.jpg, Page01b.jpg, etc - would be easy to see where a snafu occurred in appending then, (eg. Page01a + Page02b.jpg =  huh ).
112  DonationCoder.com Software / Post New Requests Here / Re: IDEA: Image Append - Batch on: July 12, 2014, 08:43:13 AM
New new version
113  Main Area and Open Discussion / General Software Discussion / Re: The art of finding on: July 12, 2014, 03:09:37 AM
FF context menu I can search using whatever engine is in the search box.  But it would be nicer to have a submenu with all the search engines or some other approach that's not cumbersome.  smiley

Advanced URL Builder

[attachthumb=1]

Disclaimer: I have no idea how the torrent and NZB search engines got there
114  DonationCoder.com Software / Post New Requests Here / Re: IDEA: Image Append - Batch on: July 11, 2014, 04:34:10 PM
New version
115  Main Area and Open Discussion / General Software Discussion / Re: The art of finding on: July 11, 2014, 10:55:46 AM
Perhaps refine your search terms:

Model number "power" "specification"

eg.

HS06THB "power" "specification"

Second answer, (for me), is the spec sheet at Seagate, (who took over Samsung' HDD assets).
116  DonationCoder.com Software / Post New Requests Here / Re: IDEA: Image Append - Batch on: July 11, 2014, 10:31:23 AM
Here's something that might make it easier: gmMontage

It's a simple program that will generate a batch script to be used with the GraphicsMagick program, (that means you need to install GraphicsMagick).

New v0.0.0.3:
Modified GUI
A few more colour choices for the separator
Generates the batch to call GM, just double-click it
Can generate Horizontal or Vertical GM batch file, so for the OP, run it first as Vertical, then run it as Horizontal on the resultant images from the Vertical run, and you'll get:

AC
BD


[attach=2]

Use the Path button to select an image in the folder you want to process, if Windows can read the image file the Width and Height values will be filled in along with the Path automatically.  You can enter the Width and Height manually if necessary, (eg. Windows can't read the info from the file) - any values you enter will be overwritten if you then choose another file.

Select a separator colour from the drop down list, (I can add more if necessary), set the separator width.  The Shave checkbox lets you remove the borders that get added at the top/bottom or left/right of the final image.

After it's finished you'll get the following window:

[attach=3]

NOTES:
1) It outputs a PNG file, the file will be named <image1>+<image2>.png.  Thus the output is lossless but will result in larger file sizes - you can always recompress as JPG to a level that's acceptable.
2) If there's an odd number of images in the folder, the last one won't be used.
3) This was written with the constraints of the OP in mind, ie. images are all the same dimensions, orientation, and vertical/horizontal appending of two images was required.

With any luck after executing the batch file you'll get the following result:

[attachthumb=1]

Here's the source, executable attached:
Formatted for AutoIt with the GeSHI Syntax Highlighter [copy or print]
  1. #Region ;**** Directives created by AutoIt3Wrapper_GUI ****
  2. #AutoIt3Wrapper_Res_Fileversion=0.0.0.3
  3. #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
  4. #include <File.au3>
  5. #include <FileConstants.au3>
  6. #include <MsgBoxConstants.au3>
  7. #include <GDIPlus.au3>
  8. #include <ButtonConstants.au3>
  9. #include <ComboConstants.au3>
  10. #include <EditConstants.au3>
  11. #include <GUIConstantsEx.au3>
  12. #include <StaticConstants.au3>
  13. #include <WindowsConstants.au3>
  14.  
  15. _GUISetup()
  16. _Main()
  17. _Exit()
  18.  
  19.  
  20. Func _GUISetup()
  21. #Region ### START Koda GUI section ### Form=d:\docs\autoit\_coding snacks\gmmontage\gmmontage.kxf
  22. $Form1 = GUICreate("gmMontage", 347, 219, 335, 196)
  23. Global $Input1 = GUICtrlCreateInput("", 16, 16, 265, 21, BitOR($GUI_SS_DEFAULT_INPUT, $ES_READONLY))
  24. GUICtrlSetTip(-1, "Path to images to process")
  25. Global $Button1 = GUICtrlCreateButton("Path", 296, 13, 35, 25)
  26. GUICtrlSetTip(-1, "Select an image file in the folder to process")
  27. Global $Input2 = GUICtrlCreateInput("", 120, 56, 65, 21, BitOR($GUI_SS_DEFAULT_INPUT, $ES_NUMBER))
  28. GUICtrlSetTip(-1, "Width of the SOURCE images")
  29. Global $Input3 = GUICtrlCreateInput("", 216, 56, 65, 21, BitOR($GUI_SS_DEFAULT_INPUT, $ES_NUMBER))
  30. GUICtrlSetTip(-1, "Height of the SOURCE images")
  31. GUICtrlCreateLabel("X", 197, 60, 11, 17)
  32. Global $Button2 = GUICtrlCreateButton("Generate Vertical", 16, 184, 123, 25)
  33. GUICtrlSetTip(-1, "Generate batch file for GraphicsMagick (Append Vertical)")
  34. Global $Button3 = GUICtrlCreateButton("Generate Horizontal", 157, 183, 123, 25)
  35. GUICtrlSetTip(-1, "Generate batch file for GraphicsMagick (Append Horizontal)")
  36. GUICtrlCreateLabel("Image dimensions:", 16, 59, 91, 17)
  37. GUICtrlSetTip(-1, "Dimensions of the SOURCE images")
  38. $Group1 = GUICtrlCreateGroup("Separator", 16, 88, 265, 81)
  39. Global $Combo1 = GUICtrlCreateCombo("BLACK", 22, 128, 121, 25, BitOR($CBS_DROPDOWN, $CBS_AUTOHSCROLL))
  40. GUICtrlSetData(-1, "WHITE|YELLOW|GREEN|OLIVE|BLUE|DARKBLUE|GRAY42|ORANGE|RED")
  41. GUICtrlSetTip(-1, "Colour of the separator line between images")
  42. Global $Input4 = GUICtrlCreateInput("0", 160, 128, 41, 21, BitOR($GUI_SS_DEFAULT_INPUT, $ES_NUMBER))
  43. GUICtrlSetTip(-1, "Pixel width of separator line," & @CRLF & "line will be DOUBLE this value." & @CRLF & "Max value: 20")
  44. $Updown1 = GUICtrlCreateUpdown($Input4)
  45. GUICtrlSetLimit(-1, 20, 0)
  46. Global $Checkbox1 = GUICtrlCreateCheckbox("Shave", 217, 129, 52, 17)
  47. GUICtrlSetTip(-1, "Shave added pixels from unused borders")
  48. GUICtrlCreateLabel("Colour", 63, 108, 34, 17)
  49. GUICtrlCreateLabel("Width", 163, 108, 32, 17)
  50. GUICtrlCreateGroup("", -99, -99, 1, 1)
  51. #EndRegion ### END Koda GUI section ###
  52. EndFunc   ;==>_GUISetup
  53.  
  54.  
  55. Func _Main()
  56. $nMsg = GUIGetMsg()
  57. Switch $nMsg
  58. Case $Button1
  59. Local $sTemp = FileOpenDialog("gmMontage", "", "All (*.*)", $FD_FILEMUSTEXIST + $FD_PATHMUSTEXIST)
  60. Global $sSrce = StringLeft($sTemp, StringInStr($sTemp, "\", 0, -1))
  61. GUICtrlSetData($Input1, $sSrce)
  62. Local $sTempImage = $sSrce & StringMid($sTemp, StringInStr($sTemp, "\", 0, -1) + 1)
  63. Global $sExt = StringMid($sTempImage, StringInStr($sTempImage, ".", 0, -1))
  64. Global $iWidth = _GetDim($sTempImage, True)
  65. Global $iHeight = _GetDim($sTempImage, False)
  66. GUICtrlSetData($Input2, $iWidth)
  67. GUICtrlSetData($Input3, $iHeight)
  68. Case $Button2, $Button3
  69. Global $iWidth = GUICtrlRead($Input2)
  70. Global $iHeight = GUICtrlRead($Input3)
  71. If $iWidth = 0 Or $iHeight = 0 Or $sSrce = "" Then
  72. MsgBox($MB_ICONERROR, "gmMontage", "Check PATH, WIDTH or HEIGHT values")
  73. If GUICtrlRead($Input4) > 20 Then GUICtrlSetData($Input4, "20")
  74. If $nMsg = $Button3 Then
  75. _GenBatch(True)
  76. _GenBatch(False)
  77. Case $GUI_EVENT_CLOSE
  78. EndFunc   ;==>_Main
  79.  
  80.  
  81. Func _GenBatch($bTemp)
  82. Local $sGeometry = "1x2"
  83. Local $sOutfile = $sSrce & "gmBatch-V.txt"
  84. If $bTemp Then
  85. $sGeometry = "2x1"
  86. $sOutfile = "gmBatch-H.txt"
  87. Local $bShave = (GUICtrlRead($Checkbox1) = 1)
  88. Local $iSep = GUICtrlRead($Input4)
  89. Local $sColour = GUICtrlRead($Combo1)
  90. Local $sTempFile = $sSrce & "gmMontage.txt"
  91. Local $DOScmd = "dir /b /on *" & $sExt & " > " & $sTempFile
  92. RunWait(@ComSpec & " /c " & $DOScmd, $sSrce, @SW_HIDE)
  93. Local $aFiles = FileReadToArray($sTempFile)
  94. If @error > 0 Or Not IsArray($aFiles) Then
  95. MsgBox($MB_ICONERROR, "gmMontage", "No " & StringUpper(StringMid($sExt, 2)) & "s found")
  96. FileDelete($sTempFile)
  97.  
  98. Local $iCount = UBound($aFiles)
  99. If Mod($iCount, 2) = 1 Then
  100. If MsgBox($MB_OKCANCEL + $MB_ICONWARNING, "gmMontage", "Odd number of " & StringUpper(StringMid($sExt, 2)) & "s found," & @CRLF & "skipping last image.") = $IDCANCEL Then Return
  101. $iCount -= 1
  102.  
  103. Local $hFile = FileOpen($sOutfile, $FO_OVERWRITE)
  104. For $i = 0 To $iCount - 1 Step 2
  105. Local $sOutname = StringLeft($aFiles[$i], StringLen($aFiles[$i]) - 4) & "+" & StringLeft($aFiles[$i + 1], StringLen($aFiles[$i + 1]) - 4) & ".png"
  106. Local $sBatch = "montage -tile " & $sGeometry & " -background " & $sColour & " -geometry " & $iWidth & "x" & $iHeight
  107. If $bTemp Then
  108. $sBatch &= "+" & $iSep & "+0 " & $aFiles[$i] & " " & $aFiles[$i + 1]
  109. $sBatch &= "+0+" & $iSep & " " & $aFiles[$i] & " " & $aFiles[$i + 1]
  110. If $bShave And $iSep > 0 Then
  111. If $bTemp Then
  112. $sBatch &= " temp.bmp" & @CRLF & "convert -shave " & $iSep & "x0 temp.bmp " & $sOutname
  113. $sBatch &= " temp.bmp" & @CRLF & "convert -shave 0x" & $iSep & " temp.bmp " & $sOutname
  114. $sBatch &= " " & $sOutname
  115. FileWriteLine($hFile, $sBatch)
  116. FileClose($hFile)
  117. $hFile = FileOpen($sSrce & "gmMontage.cmd", $FO_OVERWRITE)
  118. FileWriteLine($hFile, StringLeft($sSrce, 2) & @CRLF & "cd " & StringMid($sSrce, 3) & @CRLF & _
  119. "gm batch -echo on -feedback on " & $sOutfile & @CRLF & _
  120. "del temp.bmp")
  121. FileClose($hFile)
  122. MsgBox($MB_OK + $MB_ICONINFORMATION, "gmMontage", "GraphicsMagick batch file created." & @CRLF & @CRLF & _
  123. "Double-click on the file 'gmMontage.cmd' in the image folder.")
  124. EndFunc   ;==>_GenBatch
  125.  
  126.  
  127. Func _GetDim($sTemp, $i = True)
  128. _GDIPlus_Startup()
  129. Local $hImage = _GDIPlus_ImageLoadFromFile($sTemp)
  130. If $i Then
  131. Return _GDIPlus_ImageGetWidth($hImage)
  132. Return _GDIPlus_ImageGetHeight($hImage)
  133. _GDIPlus_ImageDispose($hImage)
  134. _GDIPlus_Shutdown()
  135. EndFunc   ;==>_GetDim
  136.  
  137.  
  138. Func _Exit()
  139. EndFunc   ;==>_Exit
117  Main Area and Open Discussion / General Software Discussion / Re: Windows 8 Pro on: July 10, 2014, 11:50:21 AM
Are we talking OEM or Retail?

OEM = No
Retail = Yes

See here.

If it's a clean install of 8.1 Pro RETAIL, then from point 4 onwards should work fine - I've done a clean install 8.1 Pro and activation using 8.0 Pro keys at least 3 times without a problem.
118  Other Software / Found Deals and Discounts / Re: free galileo board from MS on: July 09, 2014, 03:32:24 AM
It's sufficiently vague in what it says that I suspect no hardware is forthcoming, ie.

Pre-submit:

Quote
We’ll provide samples and documentation and we’ll show you how to create your own fun projects ...

This is in reference to the SDK/software.

Post-submit, the wording was along the lines of, (IIRC): "... we'll let you know when your kit has shipped ..."

Still sufficiently vague as it could be just a CD/DVD with requisite documentation/software.

Be that as it may, since I can't get the followup email maybe I'm just skeptical.  Wink
119  Other Software / Found Deals and Discounts / Re: free galileo board from MS on: July 08, 2014, 09:00:08 AM
Sweet Fanny Adamsw is the clean version, Sweet F*** All is the more generic term.
120  Other Software / Found Deals and Discounts / Re: free galileo board from MS on: July 08, 2014, 04:54:03 AM
Are they actually sending a board? All I see mentioned is an SDK. Is it just software for the board? huh

Also questioned in the OzB comments, nowhere did/does it say you receive any hardware.

And, while I thought I might sign up on the off chance ... two attempts, two different email addresses ... two lots of SFA in reply.
121  DonationCoder.com Software / Post New Requests Here / Re: Recursively replace characters in all file and folder names Sharepoint restrict on: July 08, 2014, 04:31:37 AM
Maybe overkill but when I have files/dirs I can't rename/delete due to weird characters, I usually boot into a Linux LiveCD and fix things.

One of the guys here could probably knock up a perl/bash script if you provide before/after examples of the names.
122  Main Area and Open Discussion / Living Room / Re: Movies or films you've seen lately on: July 07, 2014, 02:14:59 PM
Repo Men always kind of reminded me of the earlier Race Against Time with Eric Roberts.

The switch being that when you don't pay your medical bills, they come after you for your organs.

[attach=1]

Quote
When a man faces surmounting bills for his dying son's hospital stay, he enters into an agreement to sell his body for organ transplants to pay the bills. However, when he is advised that the doctors want to claim his organs immediately, he goes on the run.
123  DonationCoder.com Software / Finished Programs / Re: DONE: Easy Script to move all loose files in a folder into it's alphabetic subfolder on: July 05, 2014, 05:51:24 AM
Can you change read/write permissions on the folders, or get your sysadmin to do it for you?  I'm wondering if it would help to partially invert the logic.  That is, force  all users to write into the top-level or another holding folder, by giving them write permissions to that one only, with read-only permissions to the alphabetized folders inside.  Then, keep running your script as before on a schedule or via File Notify.  That way, everyone only need remember a single target location, the only one they can write to anyway, and the script moves the files into their correct destinations automatically.

+1  Requires no simulated thought on the part of the users smiley
124  DonationCoder.com Software / Finished Programs / Re: DONE: Easy Script to move all loose files in a folder into it's alphabetic subfolder on: July 03, 2014, 04:42:04 PM
Forgot to change the copy to a move for your purposes, (used for testing).

You can also concat the second for and the if statements into one, saves doing the extra call.

ie.

Formatted for Generic Code with the GeSHI Syntax Highlighter [copy or print]
  1. @echo off
  2. for /f "usebackq" %%a in (`dir /a-d-s-h-r-l /b d:\*.*`) do (call :extractChar %%a)
  3.  
  4. goto :END
  5.  
  6. :extractChar
  7. set test=%~1
  8. set char=%test:~0,1%
  9. for %%b in (0,1,2,3,4,5,6,7,8,9) do (if %%b == %char% set char=a)
  10. move "%~1" "output\%char%\%1"
  11. goto :EOF
  12.  

There's no need to use tr to change lower to uppercase, MS-DOS is case agnostic.  Just create the dirs first as upper or lower case ... or incorporate this to avoid extraneous programs.
125  DonationCoder.com Software / Finished Programs / Re: DONE: Easy Script to move all loose files in a folder into it's alphabetic subfolder on: July 03, 2014, 04:04:12 PM
I'll leave it to you to work out what to do if the first character is a space smiley

Formatted for Generic Code with the GeSHI Syntax Highlighter [copy or print]
  1. @echo off
  2. for /f "usebackq" %%a in (`dir /a-d-s-h-r-l /b d:\*.*`) do (call :extractChar %%a)
  3.  
  4. goto :END
  5.  
  6. :extractChar
  7. set test=%~1
  8. set char=%test:~0,1%
  9. for %%b in (0,1,2,3,4,5,6,7,8,9) do (call :compRep %%b %char%)
  10. rem Throw a mkdir in here if you want to make the dirs on the fly
  11. copy "%~1" "output\%char%\%1"
  12. goto :EOF
  13.  
  14. :compRep
  15. if %1 == %2 set char=a
  16. goto :EOF
  17.  

Call it every x minutes using Task Scheduler or use something like FileNotify to detect file creation in the directory and then call it.
Pages: Prev 1 2 3 4 [5] 6 7 8 9 10 ... 133 Next
DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.279s | Server load: 0.03 ]