May 16, 2020, 07:02 am
(This post was last modified: May 16, 2020, 07:12 am by Goldengirl52.)
(May 16, 2020, 00:25 am)SectorVector Wrote: The script you are using is for Windows Command shell.Ok, well, I needed more to keep me busy during the covid thing, looks like I've found it and it's way better than baking, eating, and baking some more Thank you again and I'll give this a try first, then look up about the batch-file.
It has different syntax than Powershell. Hence the error.
Type 'start cmd' and try your scripts in that.
Or start the cmd shell from Windows menu.
Suggest you write your script in a batch file and run it, rather than typing it on the command shell.
(May 16, 2020, 01:39 am)waregim Wrote: To clarify:I think I'll have two cups of coffee before I tackle this one but I do get some of it. Thank you and appreciate your input as well. I do love learning new things about computers. Barely scratched the surface, and only get into the deep end when I need/want something done and somehow I know there's got to be a way. I just don't know it yet
Windows Power Shell is a totally different language than the Batch language that is default on every PC. Powershell needs to be installed, and requires special .NET libraries.
Batch files end in .BAT. As mentioned you need to run Cmd.exe. you will come up with a black screen and a C:> prompt. This means you are at the black heart of the M$ beast. And have the most contol over it. It is known as Console Mode.
With FAR you do not need to run CMD.exe, even in the normal Graphics mode. Just create a link to the desktop for it.
If you are going to be doing scripting in Console Mode, I highly recommend installing Far Manager. It runs in both Console and Graphics mode, and will make managing files and scripts infinitely easier.
Power Shell has a much more complex language than Batch, but I would personally recommend using the time to learn Python instead. But for now, Batch will suffice.
Do NOT use a wordprocessor for Batch files (or any script file). Use notepad.exe, or other *text* editors.
Also: Set Windows (as well as FAR) to ALWAYS show file extensions. What comes after the last dot. This is critical for P2P because lately sporgers have been using the .lnk extension for video files, which can run their boogers.
Only certain file extensions can be run as 'commands'. The rest like videos, are data, or library routines.