topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • Thursday November 13, 2025, 1:16 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 ... 91 92 93 94 95 [96] 97 98 99 100 101 ... 225next
2376
Finished Programs / Re: DONE: Removing zero length files recursively at command-line
« Last post by 4wd on August 01, 2014, 02:14 PM »
Instead of using a hotkey, why not just call it p.cmd and stick it in the path?

When run from CLI, still takes two keypresses, p then ENTER - probably takes the same amount of time to trigger also.
2377
I'm easily confused so please talk s...l.....oooo.......w!
I'm still looking for the "supposed" script to disable lazyload.
I just came from that site with over 137,000 scripts on over 5,000 pages.
I'll need a clue as to how we do business there.
Got any tips>

Slow version:

1) Do you use Internet Explorer?
No -> Proceed to Step 2
Yes -> Give up

2) Do you use Firefox, (or other Mozilla based browser, eg. Pale Moon, CyberFox)?
No -> Proceed to Step 3
Yes -> Install GreaseMonkey addon, proceed to Step 4

3) Do you use Chrome, (or other Chrome based browser, eg. Soft Iron, Comodo Dragon)?
No -> I give up
Yes -> Install TamperMonkey, proceed to Step 4

4) Go to this website: nolazyload @ Userscripts mirror

5) Click big green Install button on top right of page.
2378
Finished Programs / Re: DONE: Removing zero length files recursively at command-line
« Last post by 4wd on August 01, 2014, 06:04 AM »
It could be that because I located the batchfile (I just called it auto.bat) in c:\ so I would be in the default path no matter where I was when I pressed AltF5 that maybe I am stuck.  I was hoping it would use the location of my "cursor" a a reference point and create the subdirectory there.

Correct, the "home" directory becomes the location of the command file because of the way you are calling it.

AFAIK, there's no way to get the current directory from a new invocation of CMD when going via a third party program unless the current directory is passed as a parameter.  Which doesn't seem to be possible as Clavier+ doesn't provide for determining where it's been invoked from.

An alternative would be a small external program that provides the path of the current active CLI window when it's called.

BTW, are you calling this from an active CLI window or from Explorer, (or something else)?

Just mucking around:
Code: Text [Select]
  1. rem qf666.cmd [file]
  2. rem
  3. rem Where [file] = optional text file with one dir to create per line
  4. @echo off
  5. rem  If file passed as arg, use it if it exists, fall back to asking
  6. rem  if it does not.
  7. if "%~1"=="" goto :Request
  8. if not exist "%~1" (
  9.   echo File does not exist
  10.   echo.
  11.   goto :Request
  12. )
  13. for /f "usebackq tokens=*" %%a in (`type "%~1"`) do (call :Extract "%%a")
  14. goto :END
  15.  
  16. :Request
  17. set /p newdir=Entername  :
  18. if "%newdir%"=="" goto :END
  19. call :Extract "%newdir%"
  20. goto :END
  21.  
  22. :Extract
  23. set ndir="%~1"
  24. md %ndir%
  25. pushd %ndir%
  26. 7za.exe e C:\preload.zip
  27. cd > path.txt
  28. popd
  29. goto :EOF
  30.  
  31. :END
2379
OK, from here:

OK then kick me now while I'm down :) but I cannot get this next on to follow the focus of the calls.

to here:

Once I put it all together, I should be able to use a single hot key to setup the whole thing.

I'm going to sum up with  :huh:

I just need to take a 380x260 (or ?) pixel jpg photo and change it to a 742x350pixel png file and not lose so much resolution  cant ell what it was to start with.   :D  I usually end up looking for a similar but larger one I can shrink instead.

SmillaEnlarger v0.8.0 - last Windows version
2380
Living Room / Re: Gadget WEEKENDS
« Last post by 4wd on July 30, 2014, 06:54 AM »
I couldn't help but notice this:
 (see attachment in previous post)

Evidence of its hand-crafted nature.

It might be true, maybe it only half sh!ts itself when it dies  ;)
2381
Living Room / Re: Gadget WEEKENDS
« Last post by 4wd on July 29, 2014, 04:11 PM »
Picked up a GOAL ZERO Nomad 7 before I went OS, (I have V1 - previous version of the linked one), for charging the phone while I read ebooks.

IMG_1145.jpg

IMG_1146.jpg
2382
General Software Discussion / Re: diagnostic tool
« Last post by 4wd on July 29, 2014, 06:15 AM »
It always helps to mention what OS you're talking about ...

Resource Monitor, (7 onwards), will show what processes are using what resources.

For XP onwards, Process Monitor from SysInternals, (Microsoft).
2383
Finished Programs / Re: DONE: Need a Script to Move User Files Into a Subfolder
« Last post by 4wd on July 29, 2014, 05:27 AM »
It seems that if there is not adequate permissions to move the file, it will loop at 30 second intervals and stall on that file.

I noted the permissions aspect when I was playing with the robocopy /COPY: option - didn't get the 30 second loop though, possibly because I wasn't Admin.

Now I just have to point it at the 568GB of faculty files and I should be just about done with this part.

Is it about now I should mention the hidden format command?

Thanks Guys! You really saved my ass on this one.

No problem  :)

Probably get skwire to mark as DONE if your OK with it.
2384
Finished Programs / Re: DONE: Need a Script to Move User Files Into a Subfolder
« Last post by 4wd on July 28, 2014, 12:23 AM »
In that case it should be obvious that you should use the shorter versions rather than my original.   ;)

Thank Abterix for that  :Thmbsup:

And as Anthony Quayle used to say: "Pleasant dreams."  >:D
2385
Finished Programs / Re: DONE: Need a Script to Move User Files Into a Subfolder
« Last post by 4wd on July 27, 2014, 04:14 PM »
Okay first let me say thank you, I'd been hoping you'd show up here as I've seen your work and had a feeling you were the guy for the job. :)

Aw shucks  :-[

Thanks  :)

It was/is really close in that it did move all the files, but it didn't move any of the folders that were in the Student\ directories. It instead looped and created a documents folder inside of all the sub directories and moved the contents into them.

Ah yes, forgot that case  :-\

The structure you gave above, the \Student xxx, is that the literal structure or figurative?

ie. Is it really \Student 123 or was that just a way of describing the structure?

If it's the first case, then if you change:

for /f "usebackq tokens=*" %%a in (`dir /s /b /ad *.*`) do (call :MakeMove "%%a")

to:

for /f "usebackq tokens=*" %%a in (`dir /s /b /ad Student*`) do (call :MakeMove "%%a")

That'll list only the folders with Student in them and stop the creation of Documents in the sub-folders.


I've changed the move to robocopy because move didn't handle folders, besides which robocopy will do a verified copy before deleting the original.

Modified original command file.

4wd, isn't this recursive?

mkdir "%~1\Documents"
move "%~1\*.*" "%~1\Documents\"

Since "%~1\*.*" includes Documents already.

Didn't seem to be since the move command just ignores folders, which is what SJ mentioned.  I've switched to robocopy since it does it all in one hit and I can exclude the destination folder from the move.

I would try it this way...

Certainly a better way to create the folders since it takes into consideration non-uniform sub-dir names - might have to rejig that bit later  :)

Using robocopy obviated the need for recursive move commands ... I hope ... seems to work OK with my test structure.

Addendum:  The shorter version using some of Abterix' lines:

All versions are up there.

As before, try it on nuke-friendly structure first.

Modified my first post to add this version.
2386
Finished Programs / Re: DONE: Need a Script to Move User Files Into a Subfolder
« Last post by 4wd on July 27, 2014, 10:09 AM »
Try this, put the command file into the \Users directory, open a CLI and enter MoveIt.cmd

Original version removed because it was "clunky" and structure specific.  :(

Worked here on my limited test with your structure above but try it on something that can afford to be nuked first.

NOTE: Since the robocopy command will output results, you could redirect the output to a file if you want to keep a log in case of Murphy.

Using some of Abterix' info below, (THANKS!), here's a shorter version:

(Cleaned it up a little)
Code: Text [Select]
  1. REM start in the Users folder
  2. @echo off
  3. rem For each year starting 20 do:
  4. for /d %%Y in (20??) do (
  5.         rem Change to year folder
  6.         pushd "%%~Y"
  7.  
  8.         rem For each student folder do:
  9.         for /d %%U in (*) do (
  10.                 robocopy "%%~U" "%%~U\Documents" /e /move /xd "Documents"
  11.  
  12.         )
  13.         rem Return to parent folder (\Users)
  14.         popd
  15. )

One-liner command file, (lots of output since echo isn't turned off):
Code: Text [Select]
  1. for /d %%Y in (20??) do (for /f "usebackq tokens=*" %%U in (`dir /b /ad "%%~Y\*"`) do (robocopy "%%~Y\%%~U" "%%~Y\%%~U\Documents" /e /move /xd "Documents"))

And one-liner for use at command prompt, (same as above except no double % for variables):
Code: Text [Select]
  1. for /d %Y in (20??) do (for /f "usebackq tokens=*" %U in (`dir /b /ad "%~Y\*"`) do (robocopy "%~Y\%~U" "%~Y\%~U\Documents" /e /move /xd "Documents"))
2387
General Software Discussion / Re: Taming Windows 8's impolite Taskbar with DDMM
« Last post by 4wd on July 22, 2014, 02:42 AM »
I've used Taskbar Activate for years, works on 7 & 8.

Introduces an indicator and delay when you're in the Taskbar zone.
2388
General Software Discussion / Re: Lazyload
« Last post by 4wd on July 20, 2014, 03:11 PM »
You guys working nights on a weekend yet just to solve my petty little problems!

Well that's DoCo I guess.  :)

We're a Global Conglomeration - it's daylight where some of us are ;)

There's a bunch of us here with no personal lives. ;)  ;D

In my case you can add: No Job, No Stress, No Money  ;D
2389
General Software Discussion / Re: Lazyload
« Last post by 4wd on July 20, 2014, 04:34 AM »
You need to install:
GreaseMonkey for Mozilla based browsers (Firefox, Pale Moon, etc),
TamperMonkey for Chrome based browsers (Chrome, Opera Net, etc).

I don't think there's a version for current IE versions, (didn't spend much time looking though - I don't use IE).

Then you can go to the link 40hz posted,
  • copy all the script text into the Clipboard,
  • left-click the arrow next to the GreaseMonkey icon in your Firefox toolbar, (if you put it there), and choose New User Script, (might be different for Chrome based browser, don't have one installed atm),
  • choose Use Script from Clipboard,
  • choose File menu, Save and then close the editor window.

The script is installed.

There's probably one on Userscripts where you can just hit the Install button, but I can't access the site atm to search.

Found one at the mirror site: nolazyload - You just hit the green Install button there once you have GreaseMonkey/TamperMonkey installed.
2390
General Software Discussion / Re: Windows 8 Pro
« Last post by 4wd on July 19, 2014, 01:25 PM »
^ Neat ... off to do a little Googling ... thanks :)


Ahhh, change it to a Volume License version ... simples!
2391
General Software Discussion / Re: The art of finding
« Last post by 4wd on July 19, 2014, 02:44 AM »
@4wd do you know which file Advanced URL Builder uses for entries?  I'd like to just copy from FF to FF portable without entering the search engines again.

@MilesAhead: Sorry, didn't see your post until now.

AdvancedURLBuilder' prefs are stored in the pref.js file in your Firefox/Pale Moon profile directory.

If you open the file and do a search for one of your entries you'll see them, they'll have lines starting with:

user_pref("aub.<setting>", <value>);
2392
^ What he said.

I guess if you want to ensure that all machines are always at the same update "level" you could push them manually but I would have thought there was an easier way.
2393
Wouldn't this suffice?

dir /od /t:c /ad

You can add any wildcards you like.

It doesn't really cover the "Even choosing the subfolders i wish more details" bit.
2394
As an exercise in futility, (skwire's version will be much better), here's something in DOS, (XP+):

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

Fixed and tested with some fake reg keys - seems to work.
2396
Non-Windows Software / Re: Android: Looking for true app data backup solution
« Last post by 4wd on July 15, 2014, 05:15 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 ;D

Clipboard Image.jpg
2397
Living Room / Re: Raspberry Pi's $35 Linux PC
« Last post by 4wd on July 14, 2014, 06:19 AM »
New Raspberry Pi Model B+

raspberry-pi-model-b-plus-raspberry-pi-australia_grande.jpg

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
2398
Finished Programs / Re: DONE: Basic Pop-Up Notice/Reminder Window
« Last post by 4wd on July 14, 2014, 05:22 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 ;)
2399
General Software Discussion / Re: Windows 8 Pro System Image Backup.
« Last post by 4wd on July 14, 2014, 05:18 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 ?
2400
General Software Discussion / Re: Windows 8 Pro System Image Backup.
« Last post by 4wd on July 13, 2014, 02:57 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) ?
Pages: prev1 ... 91 92 93 94 95 [96] 97 98 99 100 101 ... 225next