A Windows XP help forum. PCbanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » PCbanter forum » Windows 10 » Windows 10 Help Forum
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Commandd Prompt Will, Power Shell Won't



 
 
Thread Tools Rate Thread Display Modes
  #1  
Old December 17th 18, 11:16 PM posted to alt.comp.os.windows-10
Boris[_8_]
external usenet poster
 
Posts: 94
Default Commandd Prompt Will, Power Shell Won't

A beautiful Spot Light appeared on my lock screen and I wanted to save
it. I went to:

C:\Users\Boris\AppData\Local\Packages
\Microsoft.Windows.ContentDeliveryManager_cw5n1h2t xyewy\LocalState\Assets

and copied all files there out to

C:\Users\Boris\SpotLightPics, in order to have a place to batch rename
the spotlight files.

In Power Shell I performed

C:\Users\Boris\SpotLightPicsren *.* *.jpg

But Power Shell came back at me with "ren : Cannot process argument
because the value of argument "path" is not valid. Change the value of
the "path"argument and run the operation again."

Multiple tries or copy/pasting path didn't help.

I tried the same in plain old Command Prompt, and all went well.

Why the difference?

Also, there were only 19 Spot Light files in C:\Users\Boris\AppData\Local
\Packages\Microsoft.Windows.ContentDeliveryManager _cw5n1h2txyewy
\LocalState\Assets, none of which I'd ever seen, and the one I wanted to
save was not there. The dates on the files were splotchy; five this
month, some one month last year, but no order whatsoever. In general,
there were two copies of each file, one landscape, and one portrait.

Ads
  #2  
Old December 18th 18, 12:15 AM posted to alt.comp.os.windows-10
Mayayana
external usenet poster
 
Posts: 6,438
Default Commandd Prompt Will, Power Shell Won't

"Boris" wrote

| In Power Shell I performed
|
| C:\Users\Boris\SpotLightPicsren *.* *.jpg
|
| But Power Shell came back at me with "ren : Cannot process argument
| because the value of argument "path" is not valid. Change the value of
| the "path"argument and run the operation again."
|

Maybe PS doesn't handle wildcards? There's a group
for that he
microsoft.public.windows.powershell

| I tried the same in plain old Command Prompt, and all went well.
|
| Why the difference?
|

I don't use PS, but I do know the two things are
entirely different. Basic console window is essentially
DOS. PS is an extended set of applets, designed to
mimic Linux console, and to a great extent wrapping
..Net. (Microsoft decided that if they're going to build
a new, ugly language to seduce Linux network admins,
that belongs in 1993 along with the Linux console fanatics,
then they might as well go all the way and make every
aspect as bad as possible. They tried to make the
ugliest, least useful system ever with WMI/WBEM, but
no one used it, so they had to try again.


  #3  
Old December 18th 18, 10:25 AM posted to alt.comp.os.windows-10
Andy Burns[_6_]
external usenet poster
 
Posts: 1,318
Default Commandd Prompt Will, Power Shell Won't

Boris wrote:

Why the difference?


In short, pretending that you can use old "DOS" habits inside powershell
will bite you over and over again.

The arguments and switches to powershell cmdlets are different even
though some of them have the same name as the cmd.exe built-ins.
  #4  
Old December 18th 18, 02:26 PM posted to alt.comp.os.windows-10
Mayayana
external usenet poster
 
Posts: 6,438
Default Commandd Prompt Will, Power Shell Won't

"Andy Burns" wrote

| In short, pretending that you can use old "DOS"
| habits inside powershell will bite you over and over again.

Did he pretend or was he bitten by bad design?

More specifically, the dubious decision was made
to allow DOS names to be reused as aliases. Why
aliases at all? It's idiotic. It's like saying that you can
use angry or furious to mean annoyed, in case you're
too lazy to think about it. That undermines language,
with only the pretense of making it easier to learn
new things.

|
| The arguments and switches to powershell cmdlets are different even
| though some of them have the same name as the cmd.exe built-ins.

They don't have the same name. ren is an
*alias* of Rename-Item.

https://docs.microsoft.com/en-us/pow...w=powershell-6

https://ss64.com/ps/rename-item.html


  #5  
Old December 18th 18, 02:36 PM posted to alt.comp.os.windows-10
Andy Burns[_6_]
external usenet poster
 
Posts: 1,318
Default Commandd Prompt Will, Power Shell Won't


Mayayana wrote:

the dubious decision was made to allow DOS names to be reused as
aliases. Why aliases at all?


You're right, when I use powershell I avoid aliases entirely
 




Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off






All times are GMT +1. The time now is 04:34 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 PCbanter.
The comments are property of their posters.