Search results

  1. M

    Windows 10 How to recursively remove all PRG and P00 file extensions? E.g. in batch

    Ok, how to embed whole script - this code: $FilePath = $args[0] $Filename = Split-Path -Path $FilePath -Leaf $Content = Get-Content -Path "$FilePath" | Out-String $MeasuredData = Measure-Object -InputObject $Content -Line -Word -Character $FormattedOutput = "Extension $($FileName): Words...
  2. M

    Windows 10 How to recursively remove all PRG and P00 file extensions? E.g. in batch

    Ok, finally - how to create PowerShell batch or embed PS batch (lines with PS code) into BAT or CMD? Thank you for both answers. Miro
  3. M

    Windows 10 How to recursively remove all PRG and P00 file extensions? E.g. in batch

    Ok, tested, works. How to embed PowerShell commands into BAT or CMD? This is last Q. Miro
  4. M

    Windows 10 How to recursively remove all PRG and P00 file extensions? E.g. in batch

    Policy I know that needs to allow. I mean not execution by right click from menu. Really command which can be used as submenu in context menu directly starting script, like BAT or CMD has batches - similar way. Anything like \CLASSES_ROOT\*\SHELL\Remove Extensions\command\(Default)...
  5. M

    Windows 10 How to recursively remove all PRG and P00 file extensions? E.g. in batch

    Great! Only last Q - how to execute PowerShell script by command without opening PS console? Thank you very much. Miro
  6. M

    Windows 10 How to recursively remove all PRG and P00 file extensions? E.g. in batch

    Hello! I need to recursively to remove all extensions PRG and P00 on single partition. I know that recursively can work XCOPY, but renaming is other task. How to create batch to remove all these extensions of files and folders (if exist) recursively? Thank you for each help, suggestion or...
  7. M

    Windows 10 CMD.EXE - How to fix command output into variable

    Part of Registry mod I know, but message appears not - even in script it has to be shown. It produces text file with count only - I changed only its location. But if we can solve message showing, is possible to modify this code (I'm not friendly with PowerShell): Out-File -FilePath...
  8. M

    Connecting PC to other via serial - how to do it?

    Hi! I need to transfer data between my PC (Windows 10.1903 x64 Pro) and notebook with MS-DOS 7.10 (also Windows 3.11 for Workgroups - but without Win32s) I want to use serial port 'cause DOS is not so familiar with USB. I know that serial transfer was possible even on my hobby computers -...
  9. M

    Windows 10 CMD.EXE - How to fix command output into variable

    Hi! I tried to send command output to variable. I'm using is in Windows 10.1903 x64 I used syntax: SET /P variable= | command I used batch by context menu to get word, characters and lines count in text file using old WC tool (it's great). First I used only copying output into clipboard by...
  10. M

    Turn on/off monitor(s) by command

    I found solution over the web. You can use attached in archive - run as admin. It forces monitor(s) off after start. Note: I'm not author, only copied and tested, works. Miro
  11. M

    How to sync time with internet server at login?

    I know that CMOS replacing is better option, but it is placed really on place what can in my hands damage my notebook. Also - BIOS defaults are no my favorite settings. So, I want to start Windows Time Service. Is it enough to add it to startup by Task scheduler or as Startup item? Or needs it...
  12. M

    How to sync time with internet server at login?

    Hi! I found old laptop and installed there Windows 7 SP1 Pro x86. Laptop has discharged CMOS battery and it is placed deep on motherboard as is near not accessible. I think why designers left easier access to CPU instead CMOS battery? I have no choice than at power-on only confirm load defaults...
  13. M

    Turn on/off monitor(s) by command

    Hi! I'm new here. I have installed Windows 10.1903 Pro x64. I'm using many ways to realize tasks. Now I want to ask if is possible to turn on or off monitor (in my case 3 monitors) connected to computer by any command. Best in command line - it needs not extra options, I can plan it by my wish...
Top