Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > alt.comp.os.windows-10 > #182716

Re: Windows %TEMP% folder & files

From "John C." <r9jmg0@yahoo.com>
Newsgroups alt.comp.os.windows-10
Subject Re: Windows %TEMP% folder & files
Date 2025-03-02 06:14 -0800
Organization A noiseless patient Spider
Message-ID <vq1p3v$pv5p$7@dont-email.me> (permalink)
References <vpn7gg$2jeht$1@dont-email.me> <vpptmt$350ck$4@dont-email.me> <vpq3v5.11dg.1@ID-201911.user.individual.net> <vpsdmt$3m2rg$2@dont-email.me> <uln8izwjp3e6.dlg@v.nguard.lh>

Show all headers | View raw


On 25/02/28 09:39 AM, VanguardLH wrote:
> "John C." <r9jmg0@yahoo.com> wrote:
> 
>> When I run “dir %TEMP%” in Powershell, I get:
>>
>> dir : Cannot find path 'C:\WINDOWS\system32\%TEMP%' because it does not
>> exist.
> 
> As a script interpreter, Powershell uses its own command set, like
> Get-Children, instead of the DOS commands in the DOS command interpreter
> (cmd.exe), like dir.  Powershell does have some aliases on DOS commands,
> like dir.  Powershell isn't a more robust command interpreter.  It is a
> script processor that is tied into .NET [Framework].
> 
> https://en.wikipedia.org/wiki/PowerShell
> 
> While Powershell and cmd both use console windows to load command shells
> in which to execute inputted commands and display stdout, they are very
> different animals: one is a domestic cat that runs from dogs while the
> other is a jaguar that will take on crocodiles.  I've had little use for
> Powershell other than occasionally to do a command that is not available
> in cmd.exe, run scripts that would never be possible in batch scripts
> using cmd.exe, or to exercise system functions that are obtuse or
> missing from other system utilities.
> 
> As such, Powershell operates differently on DOS environment variables.
> For example, instead of using the DOS command 'set varname=varvalue", in
> Powershell you use $Env:varname = 'varvalue'.
> 
> https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_environment_variables?view=powershell-7.5
> 
> Unless you're willing to spend the effort and time to learn a new
> scripting & system interpreter language, stay away from Powershell.
> Learning it is tantamount to learning a new programming language, like
> Perl, Javascript, Python, VBA, PHP, ,etc.  Just use a DOS shell via
> cmd.exe to run the commands and use the syntax to which you are
> accustomed.  
> 
> Load cmd.exe to open a console window in which the command shell
> operates, and then issue your DOS commands.  Stick with what you know,
> or spend time learning Powershell which can take a very long time
> considering how vast are its features since Powershell is built on .NET
> CLR (Common Language Runtime) where all inputs and outputs are .NET
> objects.  I'm guessing you don't want to learn .NET nor Powershell.
> Learning Powershell is on my to-do list, and I even have a wishlist of
> books at my local public library on learning Powershell, but I never
> manage to get the time nor motivation to delve much into it.
> 
> If you don't want to read books or online tutorials on Powershell to
> learn it, go through all the tribulation of testing its use, and spend
> time in forums or newsgroups trying to get help, you can find classes on
> Powershell.  IT folks who are newsbies to Powershell take 2 weeks to
> learn an intro to /some/ of Powershell, mostly to facilitate their
> sysadmin tasks.  Most impetus to learn Powershell is by those interested
> in the realm of system administration.  Of course, to newbies even DOS
> commands are a chore to learn, and then discover their anomalies.

Wow. Thanks for that, VanguardLH. Good info. The main reason I've been
using Powershell is because I'm able to copy and paste commands into it.
I still use the regular command prompt too though.

-- 
John C.

Take back Microsoft from India.

Back to alt.comp.os.windows-10 | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Windows %TEMP% folder & files Jim Dell <Jim.Dell@gmail.com> - 2025-02-26 09:12 -0500
  Re: Windows %TEMP% folder & files "R.Wieser" <address@is.invalid> - 2025-02-26 16:51 +0100
  Re: Windows %TEMP% folder & files Paul <nospam@needed.invalid> - 2025-02-26 12:53 -0500
    Re: Windows %TEMP% folder & files "Carlos E.R." <robin_listas@es.invalid> - 2025-02-26 19:29 +0100
      Re: Windows %TEMP% folder & files Frank Slootweg <this@ddress.is.invalid> - 2025-02-26 20:46 +0000
        Re: Windows %TEMP% folder & files Ed Cryer <ed@somewhere.in.the.uk> - 2025-02-26 21:15 +0000
          Re: Windows %TEMP% folder & files Newyana2 <newyana@invalid.nospam> - 2025-02-26 20:06 -0500
            Re: Windows %TEMP% folder & files Paul <nospam@needed.invalid> - 2025-02-26 21:09 -0500
            Re: Windows %TEMP% folder & files Ed Cryer <ed@somewhere.in.the.uk> - 2025-02-27 11:15 +0000
              Re: Windows %TEMP% folder & files Newyana2 <newyana@invalid.nospam> - 2025-02-27 07:34 -0500
                Re: Windows %TEMP% folder & files Ed Cryer <ed@somewhere.in.the.uk> - 2025-02-27 19:00 +0000
                Re: Windows %TEMP% folder & files Newyana2 <newyana@invalid.nospam> - 2025-02-27 16:54 -0500
                Re: Windows %TEMP% folder & files Ed Cryer <ed@somewhere.in.the.uk> - 2025-02-27 22:54 +0000
                Re: Windows %TEMP% folder & files Frank Slootweg <this@ddress.is.invalid> - 2025-03-01 15:29 +0000
        Re: Windows %TEMP% folder & files VanguardLH <V@nguard.LH> - 2025-02-26 16:06 -0600
          Re: Windows %TEMP% folder & files Frank Slootweg <this@ddress.is.invalid> - 2025-02-27 13:29 +0000
        Re: Windows %TEMP% folder & files Anssi Saari <anssi.saari@usenet.mail.kapsi.fi> - 2025-02-27 12:37 +0200
      Re: Windows %TEMP% folder & files Char Jackson <none@none.invalid> - 2025-02-26 17:57 -0600
        Re: Windows %TEMP% folder & files John <Man@the.keyboard> - 2025-02-27 12:01 +0000
      Re: Windows %TEMP% folder & files Zaidy036 <Zaidy036@air.isp.spam> - 2025-02-26 19:20 -0500
  Re: Windows %TEMP% folder & files Newyana2 <newyana@invalid.nospam> - 2025-02-26 13:42 -0500
  Re: Windows %TEMP% folder & files VanguardLH <V@nguard.LH> - 2025-02-26 13:55 -0600
    Re: Windows %TEMP% folder & files VanguardLH <V@nguard.LH> - 2025-02-26 14:23 -0600
  Re: Windows %TEMP% folder & files John <Man@the.keyboard> - 2025-02-27 11:47 +0000
    Re: Windows %TEMP% folder & files Jim Dell <Jim.Dell@gmail.com> - 2025-02-27 08:49 -0500
      Re: Windows %TEMP% folder & files Frank Slootweg <this@ddress.is.invalid> - 2025-02-27 15:00 +0000
    Re: Windows %TEMP% folder & files Jim Dell <Jim.Dell@gmail.com> - 2025-02-27 08:49 -0500
  Re: Windows %TEMP% folder & files "John C." <r9jmg0@yahoo.com> - 2025-02-27 06:43 -0800
    Re: Windows %TEMP% folder & files Frank Slootweg <this@ddress.is.invalid> - 2025-02-27 15:31 +0000
      Re: Windows %TEMP% folder & files "John C." <r9jmg0@yahoo.com> - 2025-02-28 05:29 -0800
        Re: Windows %TEMP% folder & files Paul <nospam@needed.invalid> - 2025-02-28 12:32 -0500
          Re: Windows %TEMP% folder & files "John C." <r9jmg0@yahoo.com> - 2025-03-02 06:11 -0800
        Re: Windows %TEMP% folder & files VanguardLH <V@nguard.LH> - 2025-02-28 11:39 -0600
          Re: Windows %TEMP% folder & files "John C." <r9jmg0@yahoo.com> - 2025-03-02 06:14 -0800
            Re: Windows %TEMP% folder & files Frank Slootweg <this@ddress.is.invalid> - 2025-03-02 15:20 +0000
              Re: Windows %TEMP% folder & files Paul <nospam@needed.invalid> - 2025-03-02 14:57 -0500
                Re: Windows %TEMP% folder & files Frank Slootweg <this@ddress.is.invalid> - 2025-03-02 20:28 +0000
              Re: Windows %TEMP% folder & files "John C." <r9jmg0@yahoo.com> - 2025-03-03 06:15 -0800
            Re: Windows %TEMP% folder & files VanguardLH <V@nguard.LH> - 2025-03-02 14:44 -0600
        Re: Windows %TEMP% folder & files Mr Xi Ji Ping <ping@china.cn> - 2025-02-28 17:39 +0000
          Re: Windows %TEMP% folder & files VanguardLH <V@nguard.LH> - 2025-02-28 12:10 -0600
          Re: Windows %TEMP% folder & files "John C." <r9jmg0@yahoo.com> - 2025-03-02 06:18 -0800
        Re: Windows %TEMP% folder & files Jim Dell <Jim.Dell@gmail.com> - 2025-03-01 19:11 -0500
    Re: Windows %TEMP% folder & files John <Man@the.keyboard> - 2025-02-28 23:40 +0000
  Re: Windows %TEMP% folder & files Zaidy036 <Zaidy036@air.isp.spam> - 2025-02-27 10:03 -0500

csiph-web