Search found 590 matches
- 12 Jan 2022 18:45
- Forum: DOS Batch Forum
- Topic: how do i make an output of ECHO SET V5=2>> %BAT%
- Replies: 16
- Views: 8231
Re: how do i make an output of ECHO SET V5=2>> %BAT%
If you had shown the common decency to have acknowledged my code earlier than the twelve days, since I offered it to you, I'd have happily explained to you how to get it to work properly with your modified commands. I gave you ample opportunity to do so, and prompted you about that too, but you deci...
- 12 Jan 2022 03:06
- Forum: DOS Batch Forum
- Topic: getting current, parent directory name with a special & letter
- Replies: 13
- Views: 6940
Re: getting current, parent directory name with a special & letter
Well, I tried…
Code: Select all
@WMIC Path Dos_Tips Where "AccountName='nnnmmm'" Get OutaHere 1>NUL 2>&1
- 11 Jan 2022 12:22
- Forum: DOS Batch Forum
- Topic: getting current, parent directory name with a special & letter
- Replies: 13
- Views: 6940
Re: a problem finding a current directory name
Do you really want help? do you only want help of specific individuals? or do you feel as if you are entitled to free assistance? Getting help from others is not a right, but something you must earn. This is a two way process, you ask for assistance and willing helpers try to assist you. If however,...
- 11 Jan 2022 08:07
- Forum: DOS Batch Forum
- Topic: getting current, parent directory name with a special & letter
- Replies: 13
- Views: 6940
Re: getting current, parent directory name with a special & letter
I'm not sure why I'm bothering to post this, as you made absolutely no acknowledgement of my last answer to you, but as this is a new year, I'm going to try to give you at least one more opportunity to show common courtesy. @ECHO OFF ECHO %%~dp0 = "%~dp0" ECHO( FOR %%G IN ("%~dp0.") DO SET "NCD1=%%~...
- 31 Dec 2021 06:57
- Forum: DOS Batch Forum
- Topic: how do i make an output of ECHO SET V5=2>> %BAT%
- Replies: 16
- Views: 8231
Re: how do i make an output of ECHO SET V5=2>> %BAT%
Something along theses lines, perhaps: @ECHO OFF SETLOCAL ENABLEEXTENSIONS DISABLEDELAYEDEXPANSION SET "BAT=.\123.BAT" ( ECHO @ECHO OFF ECHO SETLOCAL ENABLEEXTENSIONS DISABLEDELAYEDEXPANSION ECHO SET "D0=C:\UTILITY\DOSBox-X\!BOX-X-Interface1.BAT" ECHO( ECHO SET "D1=C:\UTILITY\EDT\EDT1.EXE" ECHO SET ...
- 31 Dec 2021 06:37
- Forum: DOS Batch Forum
- Topic: issue with IF statement and weird character
- Replies: 21
- Views: 10055
Re: issue with IF statement and weird character
Here is my analysis of your issue thus far: You are running some code which you've not shown us, within a FOR loop, and which outputs filenames to a variable. I'm faced with the character as a result of a process I do not have control over. The character is ONLY in the name of the file. What I'm say...
- 29 Dec 2021 14:50
- Forum: DOS Batch Forum
- Topic: issue with IF statement and weird character
- Replies: 21
- Views: 10055
Re: issue with IF statement and weird character
Just be aware everyone that the OP specifically stated I can type it in the command Which means that they do know what the character is, and how to type it, and there is therefore no reason for them not to provide that information. There's a flaw in the theory, which is the fact I'm faced with the ...
- 28 Dec 2021 12:11
- Forum: DOS Batch Forum
- Topic: issue with IF statement and weird character
- Replies: 21
- Views: 10055
Re: issue with IF statement and weird character
Just be aware everyone that the OP specifically stated I can type it in the command Which means that they do know what the character is, and how to type it, and there is therefore no reason for them not to provide that information. IMO, I would suggest that this is not a specific issue, and the OP i...
- 28 Dec 2021 09:22
- Forum: DOS Batch Forum
- Topic: issue with IF statement and weird character
- Replies: 21
- Views: 10055
Re: issue with IF statement and weird character
As I initially stated, and also mentioned by penpen above, it may simply be a chosen codepage issue. I'd suspect your actual character is most likely an extended ASCII upper or lower case i with a grave, or acute. So in codepage 1252 that would be dec 204 and 205 (hex CC and CD), or dec 236 and 237 ...
- 28 Dec 2021 06:04
- Forum: DOS Batch Forum
- Topic: is there a difference between"DELIMS=" and "Tokens=*"
- Replies: 3
- Views: 2594
Re: is there a difference between"DELIMS=" and "Tokens=*"
To begin with, your assessment of AA is incorrect. AA will pass each line which does not begin with a semicolon, ignoring any leading space and horizontal tab characters, to the DO command(s). BB, on the other hand, will pass each line which does not begin with a semicolon, to the DO command(s). The...
- 28 Dec 2021 05:53
- Forum: DOS Batch Forum
- Topic: issue with IF statement and weird character
- Replies: 21
- Views: 10055
Re: issue with IF statement and weird character
The first thing you should note is that you are not using the recommended correct syntax for a string comparison with the IF command. What you should always use is: IF "X" == "" ECHO K Because the doublequotes protect possible poison characters If that alone does not fix your issue, then I'd suggest...
- 27 Dec 2021 16:33
- Forum: DOS Batch Forum
- Topic: HDD size
- Replies: 8
- Views: 5451
Re: HDD size
The diskdrive size is the size reported for the drive, and its contained partitions have no bearing on it. You could find out with a 'quick' command in the prompt… This should output your disks, their sizes, then the partitions with their sizes too: For /F "EOL=_ Tokens=1,* Delims==" %G In ('((Echo ...
- 20 Dec 2021 19:22
- Forum: DOS Batch Forum
- Topic: Obtaining one .dwg file from each directory in a list
- Replies: 5
- Views: 3240
Re: Obtaining one .dwg file from each directory in a list
Okay now, based on the adivce of Squashman, change:
To:
Code: Select all
For /F "UseBackQ EOL=? Delims=" %%G In ("DirList.txt") Do (
- 20 Dec 2021 12:57
- Forum: DOS Batch Forum
- Topic: Obtaining one .dwg file from each directory in a list
- Replies: 5
- Views: 3240
Re: Obtaining one .dwg file from each directory in a list
"delims=" should be "eol=? delims=", %%G\*.dwg should be "%%G\*.dwg", file=%%F should be "File=%%F", and the most important one, %file% should be !File!.
- 12 Dec 2021 12:40
- Forum: DOS Batch Forum
- Topic: Memory size per slot / Tamaño de memoria por ranura
- Replies: 11
- Views: 6550
Re: Memory size per slot / Tamaño de memoria por ranura
Could you use something like this?
Code: Select all
%SystemRoot%\System32\wbem\WMIC.exe MemoryChip Get BankLabel, Capacity