Search found 18 matches
- 21 May 2020 20:57
- Forum: DOS Batch Forum
- Topic: Cmdgfx - draw 3d and graphic primitives (polygons,circles etc) in cmd window (now with 24-bit RGB support!)
- Replies: 125
- Views: 270995
Re: Cmdgfx - draw 3d and graphic primitives (polygons,circles etc) in cmd window (now with 24-bit RGB support!)
awesome what i want to do is use part of cmdgfx to print pictures/animations during installer batches i write i already have a solution that involves printing windows 8-10 colors with spaces and preset ascii art converted pictures but, well, too much work image magick is indeed the solution but then...
- 20 May 2020 17:21
- Forum: DOS Batch Forum
- Topic: transpose input file lines to columns w/ separator
- Replies: 1
- Views: 3100
transpose input file lines to columns w/ separator
I needed to transpose a file's content into a variable number of columns, line by line: input a aa b b b ccc ddd output (2 columns, separator=" ") a aa b b b ccc ddd Couldn't find anything close to this in the forum, and using xargs.exe was out of the question as lines could contain spaces So instea...
- 20 May 2020 00:15
- Forum: DOS Batch Forum
- Topic: best way to encrypt passwords in cmd files?
- Replies: 9
- Views: 23492
Re: best way to encrypt passwords in cmd files?
the password needs to be stored in a file somehow. my issue is with characters like "^" which is used as escape character. reading it with a for loop works but then, echo %pw% will not show the "^" but echo "%pw%" will, however that causes issues when i pass the password to an msi installer whatever...
- 19 May 2020 22:17
- Forum: DOS Batch Forum
- Topic: help! how to compress file
- Replies: 2
- Views: 4116
Re: help! how to compress file
using your variables,
Code: Select all
@echo off
:compress
set folder=Fruits
set file=b.bin
set z=compressed.zip
7z.exe a %z% %folder% %file%
if %ERRORLEVEL% EQU 0 rd /s /q %folder% & del /q %file%
- 19 May 2020 20:00
- Forum: DOS Batch Forum
- Topic: Cmdgfx - draw 3d and graphic primitives (polygons,circles etc) in cmd window (now with 24-bit RGB support!)
- Replies: 125
- Views: 270995
Re: Cmdgfx - draw 3d and graphic primitives (polygons,circles etc) in cmd window (now with 24-bit RGB support!)
never mind.
cannot print jpeg, only 16 colors pcx
command is:
cannot print jpeg, only 16 colors pcx
command is:
Code: Select all
cmdgfx_vt "image whatever.pcx 0 0 O -1 0,0 0 0"
- 19 May 2020 17:26
- Forum: DOS Batch Forum
- Topic: Cmdgfx - draw 3d and graphic primitives (polygons,circles etc) in cmd window (now with 24-bit RGB support!)
- Replies: 125
- Views: 270995
Re: Cmdgfx - draw 3d and graphic primitives (polygons,circles etc) in cmd window (now with 24-bit RGB support!)
this is positively awesome!
is it possible to render a jpeg and let user type in the console after it or does cmdwiz and the other programs render only in full command window?
is it possible to render a jpeg and let user type in the console after it or does cmdwiz and the other programs render only in full command window?
- 22 Apr 2020 14:23
- Forum: DOS Batch Forum
- Topic: Expanding files
- Replies: 1
- Views: 10018
Re: Expanding files
code has 2 errors or you added a CR after the set /A; even without CR there is an odd number od % signs so X will never be evaluated correctly
that's an basic, infinite fork script to crash windows
why the question
that's an basic, infinite fork script to crash windows
why the question
- 22 Apr 2020 14:19
- Forum: DOS Batch Forum
- Topic: Clear content of a dir based on the creation date of files
- Replies: 1
- Views: 10287
Re: Clear content of a dir based on the creation date of files
easy way: sort files by creation date reversed and delete all but the first one:
Code: Select all
pushd %folder%
for /f %A in ('dir /b /o-d /TC %filePattern%') do (
IF DEFINED lastOne echo del %A
set lastOne=true
)
- 22 Apr 2020 14:05
- Forum: DOS Batch Forum
- Topic: batch file help to call current login profile ssid and reg add value in
- Replies: 1
- Views: 5713
Re: batch file help to call current login profile ssid and reg add value in
when you open a CMD prompt as ADMIN, please type 'whoami' you will see that you are still the same user. your user has admin rights that's not the same as loggin in as administrator user or runas another user. please give more context as why your %username% variable would be different when you run t...
- 22 Apr 2020 13:57
- Forum: DOS Batch Forum
- Topic: Sending an SMTP Mail using Curl in a Batch file
- Replies: 2
- Views: 4618
Re: Sending an SMTP Mail using Curl in a Batch file
1. if you want to use a password on a command line that is not possible.
please give more context first
2. more secure than ssl? i don't understand. what is more secure than an SSL tunnel?
please give more context first
2. more secure than ssl? i don't understand. what is more secure than an SSL tunnel?
- 10 Feb 2020 15:04
- Forum: DOS Batch Forum
- Topic: display any month calendar the unix command 'cal' way
- Replies: 1
- Views: 5868
display any month calendar the unix command 'cal' way
hi i need to display the current and previous month' calendar the unix way in a menu I build: February 2020 Su Mo Tu We Th Fr Sa 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 Please has anyone ever developed this so i can reuse it? I found a powershell example at http...
- 10 Feb 2020 14:56
- Forum: DOS Batch Forum
- Topic: Surprising difference between command line and batch
- Replies: 7
- Views: 11718
Re: Surprising difference between command line and batch
that's what I love with MSDOS. it's clearly a monstrosity made of different pieces developed by different teams over the last 30 years, and you cannot guess correctly at 100% any outcome until you actually test all cases. ss64.com clearly highlight that fact with "works but undocumented" comments ev...
- 28 Jan 2020 22:27
- Forum: DOS Batch Forum
- Topic: How to validate a string is a valid path
- Replies: 1
- Views: 3724
Re: How to validate a string is a valid path
don't bother and archive this.
and test ERRORLEVEL, done.
Code: Select all
echo %REMOTE_PATH% | findstr /I /R "[c-z]:\\[a-z]"
- 28 Jan 2020 21:59
- Forum: DOS Batch Forum
- Topic: How to validate a string is a valid path
- Replies: 1
- Views: 3724
How to validate a string is a valid path
Challenge: - the string path is likely to be on a remote computer (I'm testing backup path returned for some remote SQL servers) - you cannot try to create the path locally (after all it may be a drive letter not available locally) - use the minimum lines of code (I can foresee a for loop with : and...
- 27 Jan 2020 11:29
- Forum: DOS Batch Forum
- Topic: best way to encrypt passwords in cmd files?
- Replies: 9
- Views: 23492
Re: best way to encrypt passwords in cmd files?
very good idea!!!!pieh-ejdsch wrote: ↑26 Jan 2020 00:26Maybe you shouldn't call the variable password.
More like count files or something.
Give the password file restricted / explicit user rights.