logo
Tags down

shadow

How to uncompress ".tar" type files in windows CMD?


By : George
Date : October 15 2020, 08:10 PM
This might help you My environment with Windows 10 (Version 1803 build SO 17134.407) has tar, I do not know wheter is standard or because I have Visual Studio installed. See Tar and Curl Come to Windows!
code :


Share : facebook icon twitter icon

Windows Batch: Search all files in file, if line contains "apple" or "tomato" echo it


By : jlavanya
Date : March 29 2020, 07:55 AM
I hope this helps . Findstr already does this for you :
code :
@findstr /i "tomato apple" *.txt
@echo off

for /f %%i in ('findstr /i "tomato apple" *.txt') do @echo I just found a %%i

Safari <input type="file" accept="video/*"> ignores mp4 files


By : user6817554
Date : March 29 2020, 07:55 AM
it helps some times I found that the following accept string will add mp4 and m4v to the list of file types that safari will accept:
code :
accept="video/mp4,video/x-m4v,video/*"

Can I use Windows' minidump files to implement "save"/"restore" in my game?


By : Kumar Nilay
Date : March 29 2020, 07:55 AM
it fixes the issue A minidump saves all virtual memory and the CPU state of your application. So far, it seems possible to restore everything from the dump. But it's not true, because handle information is missing: while the handle value is part of your application's memory, the object behind the handle (a kernel mode object) has been freed or reassigned. This means that the following cannot be restored:
Threads Process files and directories Registry keys Windows Events

How to "compile" or "link" a Windows batch file with other script files?


By : Nestor Ramos
Date : March 29 2020, 07:55 AM
it fixes the issue Consider using 7-Zip. It is free and here
You could encapsulate all your BAT files and SQL commands into a zip like this:
code :
C:\> 7za a -t7z archive.7z *.BAT *.SQL
C:\> 7z e archive.7z
C:\> 7za a -tzip archive.zip *.BAT *.SQL
dir /b *.BAT *.CMD >files.txt
makecab /d "CabinetName1=BATplusSQL.cab" /f files.txt
del /q /f files.txt

How to batch convert "File" type files to "text" type files


By : mic
Date : March 29 2020, 07:55 AM
I wish this helpful for you Here's a little example to rename recursively files using pathlib and os.rename combo:
code :
from pathlib import Path
import os
import sys

basedir = Path("FolderName").resolve(strict=True)
print(f"Renaming files in {basedir}")

prefix = "\\\\?\\" if sys.platform == "win32" else ""

for src in basedir.glob("**/*"):
    if src.is_dir():
        continue

    dst = src.with_suffix('.txt')
    if not dst.exists():
        try:
            os.rename(f"{prefix}{src}", f"{prefix}{dst}")
            print(f"Renamed {src}")
        except Exception as e:
            print(f"Error renaming: {e}")
shadow
Privacy Policy - Terms - Contact Us © voile276.org