Search found 1158 matches

by ShadowThief
09 Jun 2022 16:06
Forum: DOS Batch Forum
Topic: How to get rid of The file cannot be copied onto itself.
Replies: 3
Views: 4612

Re: How to get rid of The file cannot be copied onto itself.

Stick a 2>nul at the end of the line to hide the errors
by ShadowThief
20 May 2022 23:35
Forum: DOS Batch Forum
Topic: BG kbd - always present key except letter one
Replies: 5
Views: 4477

Re: BG kbd - always present key except letter one

I'd expect every keyboard to have a spacebar and an enter button
by ShadowThief
18 May 2022 16:18
Forum: DOS Batch Forum
Topic: ZeroKs 0 KB file compression
Replies: 8
Views: 8341

Re: ZeroKs 0 KB file compression

Samir wrote:
18 May 2022 12:38
A little late to the party, but NTFS also has the concept of file streams so you can store the data in a different stream that won't be visible. I'm actually surprised that malware hasn't used this as an exploit yet...
Mostly because alternate data streams get cleared when you download the file
by ShadowThief
16 May 2022 12:22
Forum: DOS Batch Forum
Topic: File Info Output: Can I Restate Modification Date & Time?
Replies: 8
Views: 7313

Re: File Info Output: Can I Restate Modification Date & Time?

raywood wrote:
16 May 2022 09:01
Is it just me, or is there a lot less of that batch mastery these days? As I think of it, it's been a while since I saw much of it.
It's definitely moved to more of a hobby language from what I've seen, but there are still a couple of fairly active communities on Reddit and Discord.
by ShadowThief
02 May 2022 18:28
Forum: DOS Batch Forum
Topic: Geometry DOS
Replies: 6
Views: 6800

Re: Geometry DOS

BCX454 wrote:
02 May 2022 09:54
it said "process exit code 1" then my antivirus (avast) said that "Inject.dll was infected with IDP.Generic" please solve this i wanna play
Most likely a false positive. Kaspersky didn't alert me about anything.
by ShadowThief
02 May 2022 08:44
Forum: DOS Batch Forum
Topic: Geometry DOS
Replies: 6
Views: 6800

Re: Geometry DOS

I'd appreciate on-screen controls somewhere, even for menu navigation. It seems like half the time it wants me to use the mouse and the other half I need to use spacebar. This definitely seems like the sort of thing I'd be interested in, I just can't figure out how to start it. (Also, your screensho...
by ShadowThief
09 Apr 2022 07:19
Forum: DOS Batch Forum
Topic: batch file code delete stubborn file ?
Replies: 3
Views: 4921

Re: batch file code delete stubborn file ?

Probably some combination of the TAKEOWN and ICACLS commands, but there's probably a very good reason why you aren't able to delete that file.
by ShadowThief
08 Apr 2022 07:37
Forum: DOS Batch Forum
Topic: Searching a string within a text file
Replies: 5
Views: 4992

Re: Searching a string within a text file

I still don't understand what caused the code I posted to hang. What does the 2 > &1 actually do? 2 refers to stderr ("standard error"), which is an output stream that things write errors to if they've been coded correctly > is a redirection operator for moving the contents of output streams somewh...
by ShadowThief
27 Mar 2022 15:06
Forum: DOS Batch Forum
Topic: Key Authorization for Batch Program
Replies: 1
Views: 3179

Re: Key Authorization for Batch Program

Batch is an interpreted language, so any obfuscation has to eventually get undone so that the command prompt can actually run the code. Making the code read-only won't help either, since people can just copy and paste the code into another instance of Notepad. That said, you can certainly get the ou...
by ShadowThief
10 Mar 2022 20:39
Forum: DOS Batch Forum
Topic: Conditionally replace slash with jrepl.bat
Replies: 13
Views: 10800

Re: Conditionally replace slash with jrepl.bat

Quoting yourself isn't going to make us respond faster.
by ShadowThief
07 Mar 2022 09:33
Forum: DOS Batch Forum
Topic: Finding Multiple Strings in Multiple Files and outputting a report showing which files contained which strings
Replies: 7
Views: 5430

Re: Finding Multiple Strings in Multiple Files and outputting a report showing which files contained which strings

XLSX is specifically a zip of XML files, so if you're going to try and parse them in a language that isn't vbscript, you're going to have a really bad time. I cannot discourage this strongly enough.
by ShadowThief
16 Feb 2022 08:43
Forum: DOS Batch Forum
Topic: Wmic.exe
Replies: 26
Views: 27926

Re: Wmic.exe

Like Bitsadmin, wmic has been "deprecated" for years now. I highly doubt it's going anywhere; if nothing else, Microsoft prioritizes backwards compatibility. That's the reason Windows 11 still even has batch even though they've been trying to push PowerShell ever since it was created.
by ShadowThief
08 Feb 2022 15:31
Forum: DOS Batch Forum
Topic: Why this if statement not working properly?
Replies: 6
Views: 4470

Re: Why this if statement not working properly?

That's definitely it, although you only need to escape the ).
by ShadowThief
08 Feb 2022 08:53
Forum: DOS Batch Forum
Topic: Why this if statement not working properly?
Replies: 6
Views: 4470

Re: Why this if statement not working properly?

Everything inside of your code block gets read in all at once, so the interpreter has to know where qemu-img is just in case it needs that information.
by ShadowThief
08 Feb 2022 07:42
Forum: DOS Batch Forum
Topic: Why this if statement not working properly?
Replies: 6
Views: 4470

Re: Why this if statement not working properly?

There is no program called qemu-img in any of the folders that are listed when you run echo %PATH%.

Try using the full path to qemu-img.exe in your script. Use double quotes if you've got spaces in the path.