Search found 909 matches

by ShadowThief
29 Nov 2018 22:37
Forum: DOS Batch Forum
Topic: Get help on file
Replies: 7
Views: 1115

Re: Get help on file

Just change the extension from .txt to .bat and the three executables will run one after the other in order until all three are done.
by ShadowThief
27 Nov 2018 21:42
Forum: DOS Batch Forum
Topic: RPG: World of fireYtail
Replies: 2
Views: 863

Re: RPG: World of fireYtail

I'd like to see more distinction between allies and enemies; I spent the first two attempts at playing the game attacking myself because it wasn't clear who was where. It seems you had no real reason to make the background green or fullscreen, so after spending two minutes playing the game and then ...
by ShadowThief
27 Nov 2018 14:09
Forum: DOS Batch Forum
Topic: Batch RPG: 004RPG (new) and HyperRPG (outdated)
Replies: 2
Views: 1483

Re: Batch RPG: 004RPG (new) and HyperRPG (outdated)

I'm feeling nice, so you won't get the usual "actively try to nitpick every flaw there is" treatment that I usually give these things. Both games could stand to be optimized. HyperRPG is 200 KB. You could easily get it to half that. 004RPG could easily be in the double digits in terms of file size. ...
by ShadowThief
25 Nov 2018 22:08
Forum: DOS Batch Forum
Topic: Need help understanding this parsing method???
Replies: 2
Views: 699

Re: Need help understanding this parsing method???

The carets are because of the lack of quotes in the for loop options. Ordinarily it would be For /F "usebackq tokens=1-3" %%x but it isn't here because... I'm really not sure. I can't find the specific version of the code that you're using. Presumably it's for performance optimization, but I can't b...
by ShadowThief
16 Nov 2018 13:28
Forum: DOS Batch Forum
Topic: HOW DO I MOVE DATA INTO SUB FOLDERS UPTO 4GB IN SIZE
Replies: 5
Views: 1039

Re: HOW DO I MOVE DATA INTO SUB FOLDERS UPTO 4GB IN SIZE

del /S recursively deletes all files in that folder and in all subfolders. Using it would be a terrible waste of an xcopy.

Also, because you're working with file sizes in the gigabytes, you need to do math with numbers larger than the 32-bit maximum, which batch can't natively do.
by ShadowThief
10 Nov 2018 21:51
Forum: DOS Batch Forum
Topic: Batch file password login - different everyday
Replies: 3
Views: 2332

Re: Batch file password login - different everyday

1. Write a script that changes a password stored in a file every time you run it. I'm thinking something that simulates diceware, personally.
2. Create a scheduled task that runs that script once per day.
by ShadowThief
05 Nov 2018 16:36
Forum: DOS Batch Forum
Topic: Replace node value in multiple xml files
Replies: 7
Views: 2064

Re: Replace node value in multiple xml files

That code and sample data gives me the output <fileiddata</fileid>data</fileiddata</fileid>>>abcdef</fileiddata</fileid>data</fileiddata</fileid>>> <city>London</city> <country>UK</country> <year>2018</year> <type>Business trip</type> <filefileiddata</fileid>data</fileiddata</fileid>>>123456</filefi...
by ShadowThief
31 Oct 2018 20:05
Forum: DOS Batch Forum
Topic: My batch Menu
Replies: 9
Views: 1823

Re: My batch Menu

Wow, this is... big. You clearly spent a lot of time on this. I'd recommend looking into the for /L loop, arrays, and functions if you're interested in significantly shrinking your code.
by ShadowThief
28 Oct 2018 19:39
Forum: DOS Batch Forum
Topic: Getting >nul 2>&1 to work within a batch file
Replies: 12
Views: 2038

Re: Getting >nul 2>&1 to work within a batch file

That makes more sense, thanks.
by ShadowThief
28 Oct 2018 16:48
Forum: DOS Batch Forum
Topic: Getting >nul 2>&1 to work within a batch file
Replies: 12
Views: 2038

Re: Getting >nul 2>&1 to work within a batch file

Quisquose wrote:
27 Oct 2018 17:48
from within a batch file?
Did you change your mind when I wasn't looking?
by ShadowThief
28 Oct 2018 15:14
Forum: DOS Batch Forum
Topic: Getting >nul 2>&1 to work within a batch file
Replies: 12
Views: 2038

Re: Getting >nul 2>&1 to work within a batch file

And yet the doskey solution you provided
Quisquose wrote:
28 Oct 2018 10:11
works perfectly, and it's exactly what I wanted.
which doesn't make sense because
Squashman wrote:
27 Oct 2018 21:48
https://ss64.com/nt/doskey.html wrote:You cannot run a Doskey macro from a batch file.
I'm not sure what Quisquose is looking for anymore, frankly.
by ShadowThief
28 Oct 2018 11:34
Forum: DOS Batch Forum
Topic: Getting >nul 2>&1 to work within a batch file
Replies: 12
Views: 2038

Re: Getting >nul 2>&1 to work within a batch file

Anther way to "get it to work with just the word closeall on its own?" is creating a Batch file named closeall.bat with the desired command... :roll: They'd still have to either call the secondary script or make peace with the fact that it would have to be the last command in the main script.
by ShadowThief
27 Oct 2018 22:37
Forum: DOS Batch Forum
Topic: Getting >nul 2>&1 to work within a batch file
Replies: 12
Views: 2038

Re: Getting >nul 2>&1 to work within a batch file

You can, however,

Code: Select all

set "closeall=taskkill /IM "cmd.exe" /f >nul 2>&1"
%closeall%
by ShadowThief
20 Oct 2018 18:53
Forum: DOS Batch Forum
Topic: Creating a small batch program
Replies: 4
Views: 1239

Re: Creating a small batch program

The GET request is already a string; or are you trying to store the response in a string? Because that's just for /f "delims=" %%A in ('curl [request]') do set "get_response=%%A" where you replace [request] with whatever the request is. You could also use curl's -o option to store the output in a fi...
by ShadowThief
18 Oct 2018 05:11
Forum: DOS Batch Forum
Topic: Renaming Data
Replies: 10
Views: 1949

Re: Renaming Data

Actually, I might have enough sample data. Had to guess on a few things, though, which means that there are more assumptions than I would like. ::------------------------------------------------------------------------------ :: ASSUMPTIONS :: - This script is located inside of the main folder that c...