Search found 19 matches

by Lucky4Me
06 Oct 2023 15:27
Forum: DOS Batch Forum
Topic: I'd like to start Filezilla on a network PC
Replies: 5
Views: 14943

Re: I'd like to start Filezilla on a network PC

Use robocopy, if you want to transfer files from a remote pc to a local pc, or create a share, remote pc is in your own lan.

enter robocopy /? in a cmd window, gives you the options to use
by Lucky4Me
06 Oct 2023 08:46
Forum: DOS Batch Forum
Topic: I'd like to start Filezilla on a network PC
Replies: 5
Views: 14943

Re: I'd like to start Filezilla on a network PC

Check this https://learn.microsoft.com/en-us/sysinternals/downloads/psexec and then try to run the command as follows @Echo On CHCP 65001 SETLOCAL ENABLEEXTENSIONS SETLOCAL ENABLEDELAYEDEXPANSION set USERNAME=docfxit SET /P PASSWORD="Enter the user password: " ECHO. ::net use * /d /y ::net use Z: \\...
by Lucky4Me
17 Jun 2023 13:37
Forum: DOS Batch Forum
Topic: Script issue on "FINDSTR"
Replies: 7
Views: 2089

Re: Script issue on "FINDSTR"

This is what i get C:\>REG QUERY "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" | findstr ProductName ProductName REG_SZ Windows 10 Pro C:\>wmic os get Caption Caption Microsoft Windows 10 Pro C:\>systeminfo|find /i "os name" OS Name: Microsoft Windows 10 Pro C:\>
by Lucky4Me
17 Jun 2023 08:25
Forum: DOS Batch Forum
Topic: Script issue on "FINDSTR"
Replies: 7
Views: 2089

Re: Script issue on "FINDSTR"

Maybe this can help? @echo off REM Check the OS version for /f "tokens=3-5 delims= " %%i in ( 'REG QUERY "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" ^| findstr ProductName' ) do set "winversion=%%i %%j %%k" if "%winversion%" == "Windows 10 Enterprise" ( set "install_folder=\\server\share\Ent...
by Lucky4Me
17 Jun 2023 07:16
Forum: DOS Batch Forum
Topic: Script issue on "FINDSTR"
Replies: 7
Views: 2089

Re: Script issue on "FINDSTR"

Have you run "wmic os get Caption" in a DOS window on the PC?
Because when i run it i'll get "Microsoft Windows 10 Pro" not "Microsoft Windows 10 Professional" and that's a great difference!
by Lucky4Me
18 Mar 2023 11:41
Forum: DOS Batch Forum
Topic: [SOLVED] Unable to rework working script due to name of folder and / or removal of sign -
Replies: 7
Views: 3929

Re: Unable to rework working script due to name of folder and / or removal of sign -

C:\q\! SCRIPTS>
is this your working path?

make a working path "c:\q\Scripts" and try your batch again in this directory.
by Lucky4Me
18 Mar 2023 06:09
Forum: DOS Batch Forum
Topic: [SOLVED] Unable to rework working script due to name of folder and / or removal of sign -
Replies: 7
Views: 3929

Re: Unable to rework working script due to name of folder and / or removal of sign -

Try it this way, I put echo 1) ... , in the script, then you can see what the outcome is and maybe you can see the problem where it breaks? Sometimes a username with a space in can break things! @echo off setlocal enabledelayedexpansion for /f "tokens=1-3 delims=/" %%A in ('powershell -command "Get-...
by Lucky4Me
20 Jan 2023 10:36
Forum: DOS Batch Forum
Topic: Issues with my progress bar
Replies: 3
Views: 8376

Re: Issues with my progress bar

Make sure that all your variables are set correct and used correct! @ECHO OFF MODE CON: COLS=150 LINES=50 CHCP 65001 REM.-- Preparando processador de comandos SETLOCAL ENABLEEXTENSIONS SETLOCAL ENABLEDELAYEDEXPANSION ECHO. ECHO [92mCriando Estruturas de pastas...[0m ::Operations with progress bar ::...
by Lucky4Me
17 Jan 2023 06:08
Forum: DOS Batch Forum
Topic: Specific Multiple delete
Replies: 6
Views: 12610

Re: Specific Multiple delete

try this one

Code: Select all

for /r "YOUR DRIVE AND MAP" %%g in (*.xml,*.zip) do (del /q /f %%g)
change YOUR DRIVE AND MAP into "E:\PC1-HOME\export\corrupted" and adjust the extensions you want to delete. Seperate extensions with a ,
by Lucky4Me
17 Jan 2023 05:55
Forum: DOS Batch Forum
Topic: How to [automatically] rename a file within a non-specified subfolder? [AKA stopping Opera from autoupdating]
Replies: 6
Views: 11449

Re: How to [automatically] rename a file within a non-specified subfolder? [AKA stopping Opera from autoupdating]

Try the next code @for /F "tokens=1,2,3,4 delims=/ " %%A in ('Date /t') do @( set Month=%%B set Day=%%C set Year=%%D set now=%%B%%C%%D ) for /f %%i in ( 'dir "%LocalAppData%\Programs\Opera\" /B /AD ^|findstr /r [0-9]' ) do ( if exist "%LocalAppData%\Programs\Opera\%%i\opera_autoupdate.exe" ren "%Loc...
by Lucky4Me
12 Jan 2023 04:23
Forum: DOS Batch Forum
Topic: COPY FILES TO SYSTEM DATE CREATED FILENAME FOLDER
Replies: 5
Views: 9477

Re: COPY FILES TO SYSTEM DATE CREATED FILENAME FOLDER

For network, use robocopy. robocopy "C:\Users\Administrator\Downloads\%foldername%" "\\server1\x$\Backup\Testlink VM Backup\%foldername%" if you don't put %foldername% at the end of "\\server1\x$\Backup\Testlink VM Backup\%foldername%", then it will put all the files (without directory) in the map "...
by Lucky4Me
11 Jan 2023 04:52
Forum: DOS Batch Forum
Topic: COPY FILES TO SYSTEM DATE CREATED FILENAME FOLDER
Replies: 5
Views: 9477

Re: COPY FILES TO SYSTEM DATE CREATED FILENAME FOLDER

you can do it this way! @echo off for /f "skip=1" %%i in ('wmic os get localdatetime') do if not defined fulldate set fulldate=%%i set year=%fulldate:~2,4% set month=%fulldate:~4,2% set day=%fulldate:~6,2% set foldername=LOG-%month%-%day%-%year% md %foldername% xcopy *.log %foldername% check xcopy /...
by Lucky4Me
10 Jan 2023 07:20
Forum: DOS Batch Forum
Topic: Delete registry subkeys
Replies: 3
Views: 7841

Re: Delete registry subkeys

Before trying to delete the reg keys, do a check, if any of the executables, are still running?
by Lucky4Me
08 Jan 2023 11:33
Forum: DOS Batch Forum
Topic: @echo off does not work for timeout [SOLVED]
Replies: 7
Views: 12694

Re: @echo off does not work for timeout

change
timeout /t 6 |findstr /r ".0$" && goto continue || exit
to
timeout /t 6 >nul |findstr /r ".0$" && goto continue || exit
by Lucky4Me
07 Jan 2023 05:49
Forum: DOS Batch Forum
Topic: Exporting two keys from Registry residing in two different places on Windows 10
Replies: 9
Views: 16925

Re: Exporting two keys from Registry residing in two different places on Windows 10

This should do the trick! reg export "HKEY_CURRENT_USER\Console" "%userprofile%\Documents\1.reg" reg export "HKEY_USERS\S-1-5-21-3797103458-798797042-3558267449-1001\Console" "%userprofile%\Documents\2.reg" echo Windows Registry Editor Version 5.00>"%userprofile%\Documents\CMD _ PowerShell Settings....