topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • Wednesday November 12, 2025, 7:57 pm
  • 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 ... 71 72 73 74 75 [76] 77 78 79 80 81 ... 309next
1876
And how are you running this script?  I don't think I've seen a powershell I've tried that ran as advertised.  There's always some gotcha'


 
But no need for PSv4, the above script even works in PSv2 and v3

One can test in launching PS as: powershell -version 2.0

And you can force a script to run a specific PS version

(Both above mentioned ways if required PS and .NET version is installed)



Code: C++ [Select]
  1. #Requires -version 2.0
  2. $host.version
  3. $myProcess = "TOTALCMD"
  4. $ProcessData = get-process $myProcess -ErrorAction SilentlyContinue
  5. if ($ProcessData -ne $null)
  6. {
  7.         $m = ps $myProcess | measure PM -Sum ; ("$myProcess Physical Memory {0:N2}MB " -f ($m.sum / 1mb))
  8.         $m = ps $myProcess | measure WS -Sum ; ("$myProcess Working Set {0:N0}MB " -f ($m.sum / 1mb))
  9. }
  10. read-host Done! Press Enter to exit...


 Major  Minor  Build  Revision
-----  -----  -----  --------
4      0      -1     -1
TOTALCMD Physical Memory 20,09MB
TOTALCMD Working Set 37MB
Done! Press Enter to exit...:

Major  Minor  Build  Revision
-----  -----  -----  --------
2      0      -1     -1
TOTALCMD Physical Memory 20,15MB
TOTALCMD Working Set 37MB
Done! Press Enter to exit...:
-Output



 
1877
General Software Discussion / Re: Looking for Software with this feature
« Last post by MilesAhead on July 01, 2015, 07:17 AM »
In the Other options in the help it says there can be a command to run before the copy starts.  I don't see where to specify it.  But since it is a move you could conceivably scan looking for collisions and do a rename on the target end and do the move.  Once those are all out of the way, assuming we figure out how to do the command, the regular copy process commences.  Since the source has already been deleted the collision should not recur.
1878
It says on Technet I have to get W 8.1 to install PS 4.0 :down:

Not according to this Technet page.

Windows PowerShell 4.0 runs on the following versions of Windows.
  • Windows 8.1, installed by default
  • Windows Server 2012 R2, installed by default
  • Windows® 7 with Service Pack 1, install Windows Management Framework 4.0 to run Windows PowerShell 4.0
  • Windows Server® 2008 R2 with Service Pack 1, install Windows Management Framework 4.0 to run Windows PowerShell 4.0

Nowhere in the list do I see Windows 8.0


I never like PS anyway.  :)

That's just the age old fear of the new and unknown talking  ;)

I don't think so.  I did bash sh and zsh scripting on Linux where there was some rhyme and reason involved.  :)
1879
General Software Discussion / Re: Windows 10 Announced
« Last post by MilesAhead on July 01, 2015, 05:49 AM »
Anyone know how to get Windows 10 to update immediately? I've checked for updates and it often says "We found updates, we'll download them later."

Uh, no. Now is good for me, thanks. But I can't seem to find the option to force it to download now.

I'm on the fast ring, with "Delay Updates" disabled.

I would also ask here:
http://www.tenforums...com/windows-10-news/

Lots of people with multiple machines running various preview builds installed both through update and ISO images.  Plus the Main Mod Brink has a tutorial for just about everything.  He may chime in.
1880
It says on Technet I have to get W 8.1 to install PS 4.0 :down:

This Laptop often will not complete a restore point.  Never mind doing updates.  I'll use some other method.  I never like PS anyway.  :)
1881
Edit: got it to stop giving an error.  But when I run the script it just comes back to the prompt.  No busy cursor, no output no nothing.

Given what @Cocoa has just gone through with my Powershell script here, it may pay to check what version you're running and update if necessary.

To check the version, open a Powershell and enter: $PSVersionTable.PSVersion

You should get 4.0 if you're running the latest.

I get 3.0.-1.-1

First time I ever saw negative build numbers?
1882
General Software Discussion / Re: Looking for Software with this feature
« Last post by MilesAhead on June 30, 2015, 04:16 PM »
This link has a description of the features for RichCopy

RichCopy Tutorial
1883
I could write a program by the time I can figure out how to turn this thing on.  I guess that's why I've never used Powershell.  The enable command line never does.

Edit: got it to stop giving an error.  But when I run the script it just comes back to the prompt.  No busy cursor, no output no nothing.

1884
To get the total memory of a multi-process you can use a little PowerShell script


Thanks for the script and the tip.    :Thmbsup:
1885
Living Room / Re: Save Domain Privacy
« Last post by MilesAhead on June 30, 2015, 12:55 PM »
There are not company identifiers.  It's not a company.  It's just personal sites that I've registered.

In that case I would agree with you.  Especially after having my free domain yanked without consulting me.  It is really a paranoid world these days.  If you subject your code to 57 virus scanners and get 2 red flags and 55 green ones, nobody says "you got 55 green flags out of 57."  They say "you got 2 red flags."  It's retahded as we used to say in Boston.  :)
1886
General Software Discussion / Re: Windows 10 Announced
« Last post by MilesAhead on June 30, 2015, 12:00 PM »
Build 10158 for PCs

Oh FFS! ...The icon for their "All New" MS Edge browser, is a $^%#& Blue 'E'!!?! Seriously??!!??

I don't doubt they changed the name from Spartan to Edge just so they could use a morphed blue E.  After all, there were probably hundreds of variations of blue Es just lying around gathering dust.  :)
1887
Living Room / Re: Save Domain Privacy
« Last post by MilesAhead on June 30, 2015, 11:53 AM »
In the WHOIS and web searches, my address does not come up, and neither does my name.  The privacy concern is the one that comes up.  The only way it is even associated is if you did not do so at the time of registration it hit the internet, so is saved if you know how to look for it, or if you, as you said, registered as a company, which is not my concern.

I understand. But I suggest searching with the regular search engines if there are any company identifiers on your site.  I guess the guys at ICCAN may be too lazy to use more than a whois search.  But once the state and name of your LLC are out there it is a matter of public record if anyone wants to take the time to look for it, the contact info of the manager/agent.  For a few dollars it may be worth it I suppose.
1888
Living Room / Re: Save Domain Privacy
« Last post by MilesAhead on June 30, 2015, 10:15 AM »
I noticed this change too when I just registered a new domain.  I didn't shell out the extra bucks for the fake WHOIS info this time around.  Not only that but if you registered a company and you are the registered manager such as for an LLC, the stuff is coming up in web search anyway.  Anyone knows the name of the LLC then very likely the search engine is going to spit out your street address and phone number.

Yet another reason I stopped shelling out for company names just so I could shell out more to file annual reports.  I suppose if you have a company making real money you have to.  But people don't even have to go to the government web site to search out the LLC manager's contact info.  It just comes up.

Time to move to a gated community or dig a moat around the house.  :)
1889
General Software Discussion / Re: Looking for Software with this feature
« Last post by MilesAhead on June 30, 2015, 09:33 AM »
I would take a look at RichCopy

It was written by a Microsoft Employee so it likely has rules or filters xcopy and robocopy do not.
1890
Living Room / Re: Patent your mom tips
« Last post by MilesAhead on June 30, 2015, 06:42 AM »
I don't get it. What's a mom stick? :huh:

A parody of those stupid, useless but expensive products that companies try to convince first time moms that they need to buy, otherwise their kid will end up all screwed up.

Kind of like this one. That's a "Mom Stick", right there.

https://en.wikipedia...wiki/Psychic_driving

All those "learn while you sleep" deals use the gimjmick above.
1891
General Software Discussion / Re: Windows 10 Announced
« Last post by MilesAhead on June 30, 2015, 05:42 AM »
1892
Living Room / Re: The end of the hard disk
« Last post by MilesAhead on June 30, 2015, 05:29 AM »
Like optical media perhaps :)

HD don't skip across the pond as well.  Those 3 1/2"ers make a big splash.  :)
1893
Or even better and simpler

SendMode Input
return

^+v::
  Send ^v{Enter 2}
return
1894
I think it would be simple in ahk

SendMode Input
return

^+v::
  SendRaw %clipboard%
  Send {Enter 2}
return

You can change control shift v to another hotkey

Edit:  also you could test the clipboard only has text.  But if you just copied to clipboard you can forgo the safety checks.  :)

1895
Developer's Corner / Re: AutoHotKey text replacement question
« Last post by MilesAhead on June 29, 2015, 12:42 PM »
Anyway.  I remember a few years ago, finding a script that someone had already written that does autocorrects.

The other tough thing is a free grammar checker that doesn't crash the editor you are using it in. I tried Ginger and a couple of others.  Nothing really amazed me.  It seemed the better the program handled the grammar the more unstable it was.  Trying to brush up with online lessons is discouraging.  So many exceptions and bizarre rules.  I don't remember it being that complex when I was in grammar school.  :)
1896
General Software Discussion / Re: Panda Free Antivirus 2015 anyone using?
« Last post by MilesAhead on June 29, 2015, 12:34 PM »
There is a free edition ???  Do you have by chance a link at hand ?  Thanks.

Sure thing.  :)

http://www.pandasecu...ions/free-antivirus/

Edit: I think the installer wants to change your browser home page and some other option.  But according to the PcMag article the options can be deselected.

1897
Clipboard Help+Spell / Re: CHS on Linux
« Last post by MilesAhead on June 29, 2015, 12:31 PM »
I'm switching a friend on an older box over to Linux. Tired of trying to make W7 work speedily. I've got Puppy Bang on it now, and it's very impressive for speed. I might switch to Lubundu though, for the sake of a smoother ride.

I'm not sure what distro I would use.  But it would be Debian based.  I always struggled installing programs back in the RedHat 6.x days.  When I got Mandrake 9.1 it made life so much easier.  Advanced Package Tool was an order of magnitude improvement on RPM. Perhaps not totally RPM's fault.  I think on the APT side there was much more agreement what directories stuff should go in.
1898
Clipboard Help+Spell / Re: CHS on Linux
« Last post by MilesAhead on June 29, 2015, 10:17 AM »
Here you go
http://www.sevenforu...indows-versions.html

Heh.  I hate to admit I've forgotten more about Linux that I remember.  It has been quite a while since I did more than install and take a look in a VM.  :)
1899
Clipboard Help+Spell / Re: CHS on Linux
« Last post by MilesAhead on June 29, 2015, 10:01 AM »
Hey Miles. Funny coincidence, but one of the references to tech-saavy Windows guys I was thinking of was the fascinating thread over at SF which you participated in, which I'm reading right now.

Got a link?  :)
1900
General Software Discussion / Re: Panda Free Antivirus 2015 anyone using?
« Last post by MilesAhead on June 29, 2015, 09:52 AM »
Discount codes ?

I was looking at the Free edition.  I haven't noticed any giveaways lately.
Although in the PC Mag article the free one is rated higher than some of the paid av programs.
Pages: prev1 ... 71 72 73 74 75 [76] 77 78 79 80 81 ... 309next