Search found 4330 matches
- 11 Nov 2024 09:48
- Forum: DOS Batch Forum
- Topic: Question about unattended or silent uninstallation
- Replies: 5
- Views: 3031
Re: Duda con desinstalación desatendida o silenciosa
We do ask that all posts are in English on the forum. If you need language specific support I would suggest you post on StackOverFlow which has dedicated sites for several languages.
- 04 Nov 2024 10:15
- Forum: DOS Batch Forum
- Topic: Foxidrive has left us
- Replies: 44
- Views: 211619
Re: Foxidrive has left us
8 years.
Foxidrive, I hope you are still with us in spirit.
Foxidrive, I hope you are still with us in spirit.
- 09 Oct 2024 13:12
- Forum: DOS Batch Forum
- Topic: date and time format inconsistencies
- Replies: 13
- Views: 34546
Re: date and time format inconsistencies
Also realize that Microsoft has put wmic.exe on its deprecation list. It will be removed from Windows in the near future. That being said you can call out to powershell from a batch file to get the date and time. FOR /F "usebackq delims=" %%G IN (`powershell "(Get-Date).ToString('yyyy-MM-dd-hh-mm-ss...
- 29 Aug 2024 08:51
- Forum: DOS Batch Forum
- Topic: Mass Batch help please
- Replies: 2
- Views: 27809
Re: Mass Batch help please
cmd.exe has a line execution limit of 8192 characters. When you drag and drop files onto a batch file you are sending in every fully qualified path to the file plus quotes if the file path has spaces. Reading the directory with a FOR command is a much better option.
- 25 Jun 2024 09:46
- Forum: DOS Batch Forum
- Topic: Echo variables with space
- Replies: 1
- Views: 10009
Re: Echo variables with space
Code: Select all
set "shortcut="Adobe Acrobat.lnk" "Firefox.lnk" "Google Chrome.lnk" "Google Earth Pro.lnk""
for %%G in (%shortcut%) do echo "%%~G"
- 18 Jun 2024 07:56
- Forum: DOS Batch Forum
- Topic: Replace file lines: if statement and goto
- Replies: 4
- Views: 15776
Re: Replace file lines: if statement and goto
Nice job. I do like your logic.Aacini wrote: ↑17 Jun 2024 17:21I wrote a new solution for this problem that allows a simple (and fast!) processing of a large number of replacements. I posted my solution in the original SO forum (because I can earn some rep points there)...
Antonio
- 17 Jun 2024 13:34
- Forum: DOS Batch Forum
- Topic: Replace file lines: if statement and goto
- Replies: 4
- Views: 15776
Re: Replace file lines: if statement and goto
Oddly familiar question that I posted two possible solutions to on StackOverFlow yesterday.
https://stackoverflow.com/q/78630421/1417694
https://stackoverflow.com/q/78630421/1417694
- 15 Jun 2024 18:57
- Forum: DOS Batch Forum
- Topic: info.bat stickied post gone?
- Replies: 3
- Views: 12000
Re: info.bat stickied post gone?
Wayback Machine did have the code but I don't know if this is the most up to date. :: INFO.BAT version 1.5 :: source http://www.dostips.com :: Bugs and suggestions can be reported in thread http://www.dostips.com/forum/viewtopic.php?f=3&t=7347 :: :: Release History: :: 2018-05-03 v1.5: More reliable...
- 15 Jun 2024 18:52
- Forum: DOS Batch Forum
- Topic: info.bat stickied post gone?
- Replies: 3
- Views: 12000
Re: info.bat stickied post gone?
Moderator error. When we were having so many issues with spam accounts and spam posts for several months this year, I accidentally deleted it. I had posted about it in the moderator forum. Wasn't sure if Peter could restore the topic from backup but he has been pretty busy with his own life and tryi...
- 12 Jun 2024 11:09
- Forum: DOS Batch Forum
- Topic: set variable multiple value [SOLVED]
- Replies: 2
- Views: 39349
Re: set variable multiple value
Code: Select all
@echo off
setlocal enabledelayedexpansion
set "profile_delete="
for /f "delims=" %%a in ('dir /b C:\Users ^|findstr /i aluno') do (
set "profile_delete=%%a !profile_delete!"
)
echo %profile_delete%
- 12 Jun 2024 11:05
- Forum: DOS Batch Forum
- Topic: plus sign in file name
- Replies: 4
- Views: 27947
Re: plus sign in file name
Don't use COPY. Use XCOPY or ROBOCOPY.
- 12 Jun 2024 08:33
- Forum: DOS Batch Forum
- Topic: SQL client to use from batch
- Replies: 5
- Views: 52863
- 11 Jun 2024 08:44
- Forum: DOS Batch Forum
- Topic: SQL client to use from batch
- Replies: 5
- Views: 52863
Re: SQL client to use from batch
We got rid of DB2 on our Mainframe many years ago, but whomever is the DB admin can give the client to install.
- 30 May 2024 11:10
- Forum: DOS Batch Forum
- Topic: Do not expand Comments
- Replies: 5
- Views: 13760
Re: Do not expand Comments
You were literally directed to read this website https://www.robvanderwoude.com/escapechars.php in your last thread from two months ago https://www.dostips.com/forum/viewtopic.php?f=3&t=11182&p=69806#p69801 Which literally shows you 4 lines down how to escape a percent symbol. All DOS versions inter...
- 15 May 2024 08:28
- Forum: DOS Batch Forum
- Topic: netsh Interface name store as variable
- Replies: 10
- Views: 30116
Re: netsh Interface name store as variable
Based on your initial netsh output you do not have any interfaces that are "Connected" and are "Ethernet" What output are expecting when nothing matches?