Search found 511 matches

by npocmaka_
07 May 2019 02:37
Forum: DOS Batch Forum
Topic: command prompt in windows 10
Replies: 37
Views: 39941

Re: command prompt in windows 10

Microsoft unveils Windows Terminal, a new command line app for Windows
by npocmaka_
09 Feb 2019 14:21
Forum: DOS Batch Forum
Topic: Download and unzip file Batch
Replies: 34
Views: 27363

Re: Download and unzip file Batch

Check this and this
by npocmaka_
28 Nov 2018 13:31
Forum: DOS Batch Forum
Topic: CSV.BAT - CSV file manipulation with SQL syntax
Replies: 33
Views: 37459

Re: CSV.BAT - CSV file manipulation with SQL syntax

rojo wrote:
28 Nov 2018 12:59
Squashman wrote:
27 Nov 2018 14:10
npocmaka_ wrote:
27 Nov 2018 13:42
It would be useful if you can use/create a custom schema file in order to handle other data types than string.
I thought Rojo explained how to do that in this thread because I had asked him about it.
I think he did. viewtopic.php?p=43562#p43562
Thanks.
by npocmaka_
27 Nov 2018 13:42
Forum: DOS Batch Forum
Topic: CSV.BAT - CSV file manipulation with SQL syntax
Replies: 33
Views: 37459

Re: CSV.BAT - CSV file manipulation with SQL syntax

why don't you use SQL scripts to create, manage, convert update or delete databases ? Can your SQL program not do that ? Because I had CSVs. This script is not bad for basic CSV processing and the JET Engine is a basically a database engine installed with your windows by default. Though It can be e...
by npocmaka_
23 Nov 2018 04:03
Forum: DOS Batch Forum
Topic: CSV.BAT - CSV file manipulation with SQL syntax
Replies: 33
Views: 37459

Re: CSV.BAT - CSV file manipulation with SQL syntax

A note about this script. If the CSV has more than one dot character in its file the script will fail with "The Microsoft Jet database engine could not find the object .." -> https://stackoverflow.com/questions/10137970/the-microsoft-jet-database-engine-could-not-find-the-object-sheet1 may be a chec...
by npocmaka_
09 Nov 2018 07:22
Forum: DOS Batch Forum
Topic: Replace node value in multiple xml files
Replies: 7
Views: 8114

Re: Replace node value in multiple xml files

penpen wrote:
08 Nov 2018 10:35
You might want to do xslt, see example here:
viewtopic.php?p=32941#p32941

penpen
Thanks.
by npocmaka_
06 Nov 2018 05:03
Forum: DOS Batch Forum
Topic: Replace node value in multiple xml files
Replies: 7
Views: 8114

Re: Replace node value in multiple xml files

here's a .bat script that does the thing you want with a single file (you can call it from another bat that iterates the needed files): @if (@X)==(@Y) @end /* JScript comment @echo off cscript //E:JScript //nologo "%~f0" %* ::pause exit /b %errorlevel% @if (@X)==(@Y) @end JScript comment */ var ARGS...
by npocmaka_
06 Nov 2018 04:45
Forum: DOS Batch Forum
Topic: Replace node value in multiple xml files
Replies: 7
Views: 8114

Re: Replace node value in multiple xml files

We need a general purpose .bat that can handle xml files :!:

Here's how the xmls can be handled with WSH - https://docs.microsoft.com/en-us/previo ... v=msdn.10)
.net is more powerful though
by npocmaka_
06 Aug 2018 23:13
Forum: DOS Batch Forum
Topic: some undocumented switches for some commands
Replies: 5
Views: 7966

Re: some undocumented switches for some commands

Probably is something introduced with windows 8 or windows 10: format /? Formats a disk for use with Windows. FORMAT volume [/FS:file-system] [/V:label] [/Q] [/L[:state]] [/A:size] [/C] [/I:state] [/X] [/P:passes] [/S:state] FORMAT volume [/V:label] [/Q] [/F:size] [/P:passes] FORMAT volume [/V:label...
by npocmaka_
06 Aug 2018 06:01
Forum: DOS Batch Forum
Topic: some undocumented switches for some commands
Replies: 5
Views: 7966

Re: some undocumented switches for some commands

Post it and I'll spin up a sacrificial VM when I get home in 7 hours :D Turned out there's only one - /trnh . I was checking FORMAT switches on the ss64 help page where the /dax switch is not mentioned there but it is explained in the help message .Probably it was included in some of the newer vers...
by npocmaka_
04 Aug 2018 06:47
Forum: DOS Batch Forum
Topic: some undocumented switches for some commands
Replies: 5
Views: 7966

Re: some undocumented switches for some commands

more /h will print the help message mode will show the status with any switch starting with /sta -> more /starlord fc has /off and /offline - probably something for offline files.I have no idea what can be used this for. format has /dax switch - probably related to this - https://msdn.microsoft.com/...
by npocmaka_
04 Aug 2018 06:38
Forum: DOS Batch Forum
Topic: FOR /F with Line Feed
Replies: 17
Views: 13336

Re: FOR /F with Line Feed

there was an easier way to the the LF with set and brackets but I cant find the link. If I'm not wrong it was found by Aacini.