topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Saturday April 11, 2026, 5:49 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Recent Posts

Pages: prev1 ... 121 122 123 124 125 [126] 127 128 129 130 131 ... 225next
3126
Finished Programs / Re: DONE: Sync folders by renaming files
« Last post by 4wd on June 03, 2013, 02:59 AM »
It's good to have a checksum option, but i just checked a couple hundred .jpgs and videos and couldn't find a single pair of files that were exactly the same size, even pix taken within seconds of each other.

I didn't think it would work to well due to the EXIF data contained within the JPG possibly being different even though the image data and size might be identical.

i do have lots of videos too, and i'm afraid checksums would take a long time. before i asked this question, i tried a few sync programs and dupe finders; FreeFileSync when given 2 dozen videos on each side to examine estimated it would take 2 hours. can it check the date and time instead of checksum?

Should be doable, so you want size, date and time to be matched ?
3127
Post New Requests Here / Re: IDEA: Bring back the BEEP!
« Last post by 4wd on June 02, 2013, 08:37 PM »
Whether or not you can control the motherboard beeper/speaker might come down to your hardware.  The only time I get a beep, (besides fault codes and I'm not sure about that since the board has a diagnostic LED display), is when I enter the BIOS.

No beep for successful POST which is handy for when you fire it up in the middle of the night.

Since the onboard beeper is really only required for POST codes these days there may be no hardware connection on your board which allows it to be driven by the OS.

One way to check would be to load a Linux LiveCD and try the beep command.
3128
Finished Programs / Re: SOLVED: GUI for DISM
« Last post by 4wd on June 02, 2013, 08:21 PM »
Something along the lines of DISMUI then but that also has descriptions, (DISMUI already does dependencies).

DISMUI is free, you need to register at the site before you can download it though.

DISMUI is available for free. If you need a special branded version of DISMUI please contact us for more details.
The tool now supports Windows Embedded 8 Standard!

clip_image002[6].jpg
3129
Finished Programs / Re: DONE: Sync folders by renaming files
« Last post by 4wd on June 02, 2013, 08:05 PM »
As an aside, I think basing the rename off of file sizes is just asking for trouble since the chance of a collision does exist, however small.  On any modern computer, generating any kind of checksum for such small files wouldn't be much of a price to pay to better guard against collisions.

V2 with MD5 checksum, requires MS File Checksum Integrity Verifier in your path somewhere:

Code: Text [Select]
  1. @echo off
  2. rem RenSS.cmd
  3. rem Rename files in dest with same size as files in source
  4. rem
  5. rem RenSS.cmd <srce> <dest>
  6.  
  7. setlocal EnableExtensions
  8. setlocal EnableDelayedExpansion
  9.  
  10. for /r %1 %%a in (*.jpg) do (call :CheckSize "%2" %%~za "%%~fa")
  11. goto End
  12.  
  13. :CheckSize
  14. for /r %1 %%b in (*.jpg) do (if %2 equ %%~zb call :CheckMD5 "%~3" "%%~b")
  15. goto :EOF
  16.  
  17. :CheckMD5
  18. for /f "skip=3 delims= " %%i in ('fciv -md5 %1') do set md5_1=%%i
  19. for /f "skip=3 delims= " %%i in ('fciv -md5 %2') do set md5_2=%%i
  20.  
  21. if "!md5_1!"=="!md5_2!" (ren "%~2" "%~nx1")
  22. set md5_1=
  23. set md5_2=
  24. goto :EOF
  25.  
  26. :End
  27. endlocal

Still has built in overwrite safeguard, (ie. you can't rename to a name that already exists).

Had to find it again, the MD5 check routine came from here courtesy of James L.

V3 adds folder requesters so you can now just double-click on the cmd file :D

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

That particular bit of sorcery came from Antonio at DosTips.

I'm starting to wonder why I bother with AutoIt  :P

EDIT: Renamed to RenSSMD5.cmd to differentiate it from V4.

NOTE: Because of the EnableDelayedExpansion setting in V4, any filename that has an exclamation mark (!) in it will NOT be renamed.  Use V9 below if you want hash comparison and you use ! in filenames.
3130
Finished Programs / Re: DONE: Sync folders by renaming files
« Last post by 4wd on June 01, 2013, 11:49 PM »
NOTE: Latest version down there.

If your only matching criteria is size then this should do what you want.

Save it as RenSS.cmd and then at a command prompt type RenSS.cmd <source> <dest> - put quote around things with spaces in.

It'll only do *.jpg, (unless you change the appropriate parameter), and it's recursive - so if your destination is a sub-directory of your source then you're in deep shit.

Code: Text [Select]
  1. @echo off
  2. rem RenSS.cmd
  3. rem Rename files in dest with same size as files in source
  4. rem
  5. rem RenSS.cmd <srce> <dest>
  6.  
  7. setlocal EnableExtensions
  8.  
  9. for /r %1 %%a in (*.jpg) do (call :CheckB "%~2" %%~za "%%~nxa")
  10. goto End
  11.  
  12. :CheckB
  13. for /r %1 %%b in (*.jpg) do (if %2 equ %%~zb ren "%%b" "%~3")
  14. goto :EOF
  15.  
  16. :End

So using your example above:

RenSS.cmd "C:\Users\Norm\Documents\My Pictures XP\Vacation 2012" "O:\DyNama Collection 2\Pix - not backed up\Vacation 2012 Backup"

Yes, I know, it's not as easy as clicking buttons, (see V3 below), but then most people would use a dual pane filemanager and just do something like RenSS.cmd %s %d

NOTE: Worked here on my small test scenario but who knows what might happen on your machine, ie. test it first on some duplicated files.

If there happens to be more than two files with the same size then subsequent rename operations for them will fail after the first, (ie. file already exists).
3131
I think that's what he meant by #6... the picture was originally a lot smaller, so he might not have noticed that there were two semi-autos on there.

I took SJ's comment to mean the 6th player in a round of Russian Roulette using the traditional 6 shot revolver, as I do with the tag beneath the image.

It's just that the person who put the tag there either has no knowledge of firearms, couldn't find an image depicting all 6 shot revolvers or, (most likely), couldn't give a !@#$!, thus making it confusing rather than witty.

But there I go, over-analysing silliness again.....time for a coffee methinks.
3132
(see attachment in previous post)

...and number 6 Gets A "Winner" Every Time! That is just so wrong...I love it!
-Stoic Joker (May 31, 2013, 11:52 AM)

Statistically, in a round of Russian Roulette that is using a semi-automatic it's the first person who wins every time.
3133
Living Room / Re: Problem with merging folders
« Last post by 4wd on May 31, 2013, 10:07 PM »
robocopy <source> <dest>

From SuperUser:
Code: Text [Select]
  1. File        Exists In   Exists In        Source/Dest     Source/Dest   Source/Dest
  2. Class       Source      Destination      File Times      File Sizes    Attributes
  3. =========== =========== ================ =============== ============= ============
  4. Lonely      Yes         No               n/a             n/a           n/a
  5. Tweaked     Yes         Yes              Equal           Equal         Different
  6. Same        Yes         Yes              Equal           Equal         Equal
  7. Changed     Yes         Yes              Equal           Different     n/a
  8. Newer       Yes         Yes              Source > Dest   n/a           n/a
  9. Older       Yes         Yes              Source < Dest   n/a           n/a
  10. Extra       No          Yes              n/a             n/a           n/a
  11. Mismatched  Yes (file)  Yes (directory)  n/a             n/a           n/a
By default, Lonely files (and directories) are always copied, unless /XL switch is used. Changed, Newer and Older files will be considered to be candidates for copying (subject to further filtering described below), Same files will be skipped (not copied), and Extra and Mismatched files (and directories) will simply be reported in the output log.

Normally, Tweaked files are neither identified nor copied – they are usually identified as Same files by default. Only when switch /IT is used will the distinction between Same and Tweaked files be made, and only then will Tweaked files be copied.

So if the source and dest files are really the same, (file date and size), you can just delete the whole directory after it's run.
3134
General Software Discussion / Re: Personalyzed directory tree listing
« Last post by 4wd on May 31, 2013, 07:09 PM »
OS 6.1 ?
Seems Apple.
Nice indeed.
I have windows.
 :Thmbsup:

That's the Windows version number:

Windows 7                      6.1
Windows Server 2008 R2   6.1
Windows Server 2008       6.0
Windows Vista                6.0
Windows Server 2003 R2  5.2
Windows Server 2003       5.2
Windows XP                    5.1
Windows 2000                 5.0

Don't know where you got it from but the version of DOpus you downloaded is not the latest:

2013-06-01 10_06_50-Download Directory Opus - Pale Moon.png

Addendum: Anyway, I got bored and decided to see if it could be done in DOS......and it can with a little help from Shortcut :)

Code: Text [Select]
  1. @echo off
  2. rem RecList.cmd
  3. rem Run it from directory you want to list, lists recursively
  4. rem output is: Name <TAB> Full Path/Target
  5. rem
  6. rem eg. RecList.cmd >output.txt
  7. rem
  8. rem Requires Shortcut.exe from http://www.optimumx.com somewhere in
  9. rem your path, eg. C:\Windows\System32
  10.  
  11. rem That's a real TAB character at the end of that line
  12. set TAB=    
  13.  
  14. rem List all the non shortcuts first as: Name<TAB>Full Path
  15. for /f "tokens=* usebackq" %%m in (`dir /s /b /a-d ^| findstr /v /i "\.lnk$"`) do echo %%~nxm%TAB%%%m
  16.  
  17. rem List all the shortcuts as: Name<TAB>Target
  18. for /r %%a in (*.lnk) do (
  19.     set "name=%%~nxa"
  20.     set "fpath=%%a"
  21. rem Line below extracts Target path from output of shortcut.exe and outputs name and target
  22.     for /f "tokens=2 usebackq delims==" %%b in (`shortcut.exe "/f:%fpath%" /a:q ^| find /i "targetpathexpanded"`) do (echo %name%%TAB%%%b)
  23. )

Output will look like:
Code: Text [Select]
  1. testdisk_win.exe    U:\test\testdisk-6.14-WIP\testdisk_win.exe
  2. THANKS    U:\test\testdisk-6.14-WIP\THANKS
  3. VERSION    U:\test\testdisk-6.14-WIP\VERSION
  4. zlib1.dll    U:\test\testdisk-6.14-WIP\zlib1.dll
  5. Permissions - Shortcut.lnk    D:\Downloads\Permissions.au3

The last line is a shortcut with its target.

Anyway, an exercise in silliness.  ;D

NOTE: I won't be feature-fying it - the source is included.
3135
Post New Requests Here / Re: Turn a batch file into an AHK script.
« Last post by 4wd on May 31, 2013, 07:34 AM »
v0.3.0.25
Changed: Logging disabled

You may pass it on to whoever wants to play with it, I'm in the process of rewriting it from scratch to get rid of all the hacky bits of code I tacked on as I went but otherwise it's not going to do anything different, (and it'll take a while).
3136
General Software Discussion / Re: 'Home' and 'End' and 'FN'.
« Last post by 4wd on May 31, 2013, 07:22 AM »
KeyTweak appeared to do the job, it recognised the mappings and created new registry keys but when I rebooted and tried the keys nothing happened, with or without the FN key, they simply appeared to have been disabled.

Works fine here, I've remapped the PgUp and PgDn keys to Home and End and it survives reboots just fine, (Win8 - which I would think would be even more anal than XP about these things).

Did you run KeyTweak after you rebooted to see if the remap was still there, (it detects any active remappings)?
3137
General Software Discussion / Re: Personalyzed directory tree listing
« Last post by 4wd on May 31, 2013, 07:19 AM »
Note3: I re-read your post and this doesnt work with shortcut files as you want - i.e. shows path to shortcut

It can if you choose to display the Target field, however it won't ouput a text file in the format Contro wants since you have to output the following headers:

Name        Target           Full Path

For a real file you'll only get Name and Full Path, for a shortcut you'll get all three fields, eg.

   Name                                      Target                                    Full Path
SolusVM VPS Setup.pdf                                                   C:\Users\4wd\Desktop\SolusVM VPS Setup.pdf
test.avi - Shortcut                      U:\test.avi                     C:\Users\4wd\Desktop\test.avi - Shortcut.lnk

Tools->Print Folder

2013-05-31 22_00_10-Print Folder Contents - Directory Opus.png

2013-05-31 22_16_27-Edit Format.png

However, you could probably then easily massage the data in an editor.
3138
Post New Requests Here / Re: Turn a batch file into an AHK script.
« Last post by 4wd on May 30, 2013, 04:14 AM »
If VIndicator is run at start-up or as I have it set as a scheduled task is that not avoided?

At startup: Possibly, depends whether a VPN  is set to connect on Windows start and whether that happens before or after startup items get executed.

Scheduled Task: Always after the event since the event has to occur for the Task to trigger.

If rasdial does not run would that not prevent a VPN from connecting, at least in the way that I am using it?

I'm not talking about rasdial failing every time, just the time I want, (VIndicator), to use it.
3139
Living Room / Re: Movies or films you've seen lately
« Last post by 4wd on May 30, 2013, 01:22 AM »
I'd give it a 4 on a scale of 10.

A bit too generous, I'd go for 3.  ;)

Next up will be The Corridor.

Was an interesting idea but, for me anyway, pretty forgettable.

Watched Banlieue 13 the other night starring David Belle, one of the developers of Parkourw.

MV5BMTA4NTk2OTc0NDBeQTJeQWpwZ15BbWU3MDU0ODgyMzE@._V1_SX214_.jpg

Last night was Gin gwai 2.

MV5BMTMzODY5MzY1MF5BMl5BanBnXkFtZTcwNzc5MTAzMQ@@._V1_SX214_.jpg
3140
Desk Sweeper does not work on my machine. Perhaps, I should have mentioned that I am running Win8.

Worked fine here on a netbook running Win8Pro + ClassicStartMenu.  All icons disappeared and then returned to Desktop, (mind you there are only two of them :) ).
3141
Post New Requests Here / Re: Turn a batch file into an AHK script.
« Last post by 4wd on May 29, 2013, 08:12 AM »
The Netbook is pretty slow which is why 'sleep' was added between the 'start' items, and because Peerblock always tries to check everything when it starts, its icon still opens several seconds after the connection is made.

That doesn't explain why it works from the CLI but not in the batch file.  If it's fast enough to create the needed pipe in the CLI, it should be able to do it within a batch file.

There's some other weird and wonderful Windows magic at work.

If devcon's speed was an issue surely that would affect my existing batch file as well?

Nope, you're not relying on its output for anything, in fact you have no error checking on any of the commands in your batch script, so if, say, the devcon command failed to (dis|en)able the interface the batch file would happily continue.

I was intending to ask you today if it was ready for a wider audience yet?

If it hasn't formatted your drive yet or caused the sun to go supernova then I guess so.  :)

You have mentioned before about getting away from its dependency on rasdial but as the most recent versions have proved reliable is there any particular reason for doing so?

I don't want to rely on the output from a CLI command that may or may not be executed or that may or may not throw an error when executed. 

If you start it after a VPN connection and it can't run rasdial or rasdial throws an error then it won't show the tray icon, I don't particularly want to sit in a loop until I get a valid output.

It'd be a lot easier to get the information direct from the horses mouth, so to speak, the same place rasdial gets it from.
Plus I have a long term motive for wanting to hit the dll directly, I want to get all information direct from the Remote Access Service rather than wait for things to show up in the EventLog.

Log files: When I moved the latest update into the folder I am running it from I noticed that it is creating a separate log file for each day that it is run, they are I admit only 1kb each but is there any built in limit to their number?

Nope, just something I thought might be useful - I was going to have it put the data usage against each session but....

If not, once you decide you have gone as far as you can with the program and do not need possible debug information any more will there be an actual need for them?

Nope except purely as a statistical source if anyone wants them.  Maybe I'll stop it creating them unless a certain magic word is enabled, (possibly /rumpelstiltskin or something).
3142
Post New Requests Here / Re: Turn a batch file into an AHK script.
« Last post by 4wd on May 28, 2013, 11:24 PM »
Your XP installation doesn't seem able to accept pipes within a batch file for some reason - you have a problem.

XP did have a known problem with STDIN/STDOUT but it was supposedly fixed in SP1.

Apart from trawling the net, not sure I can tell you what's wrong since it works fine here on both physical and virtual XP setups.  The only thing I can think of is that the output from devcon is appearing faster than the system is able to set up a pipe to find or vice versa.

You could try disabling any AV you have running just in case that is causing a delay due to scanning the system executables, (you could try excluding devcon and find from the AV).

You could also try substituting findstr for find, (probably won't make a difference but who knows): devcon status "*DEV_001C*" | findstr /i "disabled" >NUL

In the meantime a small update to VIndicator, that'll be it until I read up a bit more on Dll calls, (which are extremely confusing), to get rid of the rasdial dependency.
3143
General Software Discussion / Re: Help needed with computer problem
« Last post by 4wd on May 27, 2013, 08:44 PM »
But CPU+MB won't do anything.  Which is why I'm going with what Stoic said.  I sort of knew it... but I was hoping I was wrong.  There's no codes at all for the no ram.

Sorry, missed your reply about the battery replacement  :-[
3144
General Software Discussion / Re: Help needed with computer problem
« Last post by 4wd on May 27, 2013, 03:25 AM »
haven't tried taking out all gfx cards... but I have switched it out to no avail.  Do you think that it might be the card slot or something?

when diagnosing computer problems -- the technique is remove and swap everything you possibly can.  you want to eliminate possibilities.  so if there are cards you can remove, remove 'em!

I prefer starting from an absolutely base system and working forward from there (assuming onboard gfx):
1) CPU + MB                      = beep codes
2) CPU + MB + RAM            = BIOS
3) CPU + MB + RAM + ODD  = run a LiveCD
etc...etc

Gfx card would be the last thing I plug in since this system doesn't need it.

The less components you start with the better, AFAIAC, since I never trust what I swap in unless it came from a known working system.  It also progressively loads up the PSU, (I know you've already swapped it), who knows, it might be that plugging in the gfx card or a HDD causes an unacceptable voltage fluctuation on the supply rails.

If it fails at just CPU+MB+RAM, there's only really two things I'd try: reseating the CPU and/or reflashing the BIOS

BTW, I know you've said it hangs with either RAM stick but who is to say they both aren't bad?

Unless you can test them in another system, (or plug known working RAM in), you'll never know.

It all comes down to how much time/money you want to spend on it.
3145
General Software Discussion / Re: Help needed with computer problem
« Last post by 4wd on May 26, 2013, 09:08 PM »
Just as a matter of interest, since it has onboard gfx: with nothing but the CPU, MB, one stick of RAM and a keyboard, (no drives, no gfx card, no mouse, nothing else), will it sit in the BIOS screen without hanging?
3146
General Software Discussion / Re: Connection Conundrum
« Last post by 4wd on May 26, 2013, 08:52 PM »
ERROR_VPN_DISCONNECT 807
The network connection between your computer and the VPN server was interrupted. This can be caused by a problem in the VPN transmission and is commonly the result of internet latency or simply that your VPN server has reached capacity.
List of Error Codes that you may receive when you try to make a dial-up connection or a VPN connection in Windows 7

It sounds like something on Win7 is interfering with TCP traffic on port 1723, (or the GRE 47 packets), to that specific IP address - that would usually point to the firewall being the culprit.

From a CLI in both Windows 7 and XP:

tracert <vpn that's failing>

And paste the results, munge your IP if it shows up, (first couple of lines), and you're paranoid.

What AV are you using, some won't stop interfering even when disabled.

Even though it works OK from XP Mode on the same computer, if your router has a DMZ put the computers IP into it and try to connect to the VPN again from Windows 7, or if you have a separate modem, plug the computer directly into it and try.  Bypasses any strange firewall rules in the router.

In Computer Management->Event Viewer->Windows Logs->Applications there'll be the results of rasdial commands, a successful connection looks like:

2013-05-27 11_20_23-Server Manager.png

What do you get if it's not the same, (and the actual event data not a picture, thanks) ?
3147
Post New Requests Here / Re: Turn a batch file into an AHK script.
« Last post by 4wd on May 26, 2013, 07:05 AM »
devcon status "*DEV_001C*" | find /i "disabled"

So what does the above produce for enabled/disabled?

And what does this output:
Code: Text [Select]
  1. devcon status "*DEV_001C*" | find /i "disabled" >NUL
  2. if errorlevel 1 goto running
  3. echo disabled
  4. goto alldone
  5. :running
  6. echo enabled
  7. :alldone
  8. pause
3148
Post New Requests Here / Re: Turn a batch file into an AHK script.
« Last post by 4wd on May 26, 2013, 05:54 AM »
Code: Text [Select]
  1. devcon status "*DEV_001C*" | find /i "disabled" >NUL
  2. if errorlevel 1 goto running

You forgot the 1 didn't you?










3149
Living Room / Re: Gadget WEEKENDS
« Last post by 4wd on May 26, 2013, 02:32 AM »
One of the key things about the digitial scales is that you can zero them out after you put a bowl on them....

And here's the analog version:

IMG_6342.JPG

Rotate the base when you've measured one ingredient to re-zero for the next ingredient to be added.  The cover which acts as the measuring bowl has an indented base so it doesn't slide off the measuring platform.

Here's the exact model at Amazon.
3150
Post New Requests Here / Re: Turn a batch file into an AHK script.
« Last post by 4wd on May 25, 2013, 06:16 AM »
I just tried the devcon script for XP in reply 47, the cmd window flashes but nothing else happens, I suspect it is jumping straight to alldone because none of the programs in the main batch file are trying to open.  :huh:

I'm afraid you're going to have to do better than that, being an ex-tech I want want to know every little thing you tried without me asking for it....including the obvious things like typing devcon status "*DEV_001C*" in a CLI and you telling me what it says both with and without the interface disabled.

In the meantime: VIndicator v0.3.0.23
Changed: RAS stats polled every 100ms, icon reflects data direction
Changed: Tooltip auto-scales data kB -> PB, removed transfer rate
Removed: Debugging stuff
Added: Windows version check, doesn't run on less than Vista now
Added: Start with Windows option, (HKCU Run)
Added: Checks for Remote Access Service installation - required for MS PPTP/L2TP VPN connections
Pages: prev1 ... 121 122 123 124 125 [126] 127 128 129 130 131 ... 225next