New answers tagged

0 votes

Batch script to move files from parent folder into subfolders in lots of specified quantity

there is an error in the code not working and tried to find the error and I can't I need this code
0 votes

Outlook 365 with multiple OST for shared mailboxes

According my search, if you add another user's shared mailbox or shared folder to your profile, then all the folders in the shared mailbox to which you have access are downloaded to your local cache ...
  • 259
0 votes

Script using command prompt to check if a folder is not empty, then create sub-folders

@echo off && setlocal enabledelayedexpansion 2>nul cd /d "C:\Full\Path\To\Root\Target\Foder" || exit /b set "_cnt=0" && set "_dir=md "Folder 1" &...
  • 6,550
2 votes

PowerShell : Watch a folder and when file created, send it by mail

I edited a little bit, and it's now working. The solution : ### SET FOLDER TO WATCH + FILES TO WATCH + SUBFOLDERS YES/NO $watcher = New-Object System.IO.FileSystemWatcher $watcher.Path = "C:\...
  • 41
0 votes

Run two executables after one another from different locations in batch file, with spaces in a filename and pass commands to the other

You can try pushd: @echo off cd /d "C:\Program Files (x86)\World of Warcraft\" start "World of Warcraft Launcher" /b "World of Warcraft Launcher.exe" pushd "C:\...
  • 6,550
-1 votes

Run two executables after one another from different locations in batch file, with spaces in a filename and pass commands to the other

cd "C:\Program Files (x86)\World of Warcraft\" doesn't actually switch to that directory unless you're already on c:. Because "cd" switches the current directory on a given drive, ...
0 votes
Accepted

PowerShell - Pasting content with Get-Content line by line instead of all in one text

The hosts are written on a single line because your code is not looping through them. I have added foreach($line in $Hostname) to the code. The loop allows to add the hosts to the file line by line. ...
1 vote
Accepted

Locating error cells in spreadsheet ranges

The LibreOffice Calc Bugerra extension was released over a year ago. This extension adds a command to the Tools menu to generate a list of all errors in a document in natural order or by link count. ...
  • 938
-1 votes

How to execute a command in screen and detach?

I hope this may help for screen issues: https://askubuntu.com/questions/1429435/why-ubuntu-isnt-connecting-to-download-docker-com/1429445#1429445
1 vote

How to programmatically disable OSX from charging?

100 down to 5% would be a poor profile for battery life. 80 to 30 would be better. The Mac already has built-in optimised charging [& will never over-charge], which learns from your habits, but ...
  • 41.2k
2 votes

How to programmatically disable OSX from charging?

AFAIK, automatically limiting charging is entirely hardware dependent. Your plan to continually deep-cycle the battery between 5% and 100% charge is a quick way to destroy almost any battery, of any ...
0 votes

How to run a script after connecting to IPSEC VPN on macOS?

I have absolutely no clue about MacOS or Cisco (or Cisco software). However, I have encountered similar situations under various other operating systems / with various other software and therefore ...
  • 1,517
0 votes

How to run a script after connecting to IPSEC VPN on macOS?

You may possibly be better served by setting up the Cisco VPN Client to start on boot and tying the script to user login, unless the script is directly related to some activity tied to the VPN being ...
0 votes

How do i format multiple USB drives at once in CMD?

@echo off for /f usebackq^tokens^=^4delims^=^>^< %%i in =;(` wmic logicaldisk where drivetype^=2 get name /format:xml ^| find "VALUE" `);= do if exist "%%~i\...
  • 6,550

Top 50 recent answers are included