Search found 924 matches

by ShadowThief
15 Mar 2020 06:06
Forum: DOS Batch Forum
Topic: @Echo off is not working when Piping batch code to cmd
Replies: 8
Views: 308

Re: @Echo off is not working when Piping batch code to cmd

That's fair, if you could put the script on the machine that the code needed to run on, you wouldn't need to download it with curl and pipe it to cmd... In that case, I can recommend a two-part solution: curl vaido.world -o runme.bat && call runme.bat Or a three-part solution if you want to clean up...
by ShadowThief
15 Mar 2020 04:31
Forum: DOS Batch Forum
Topic: @Echo off is not working when Piping batch code to cmd
Replies: 8
Views: 308

Re: @Echo off is not working when Piping batch code to cmd

Then I suggest you write a wrapper script that takes the URL you're downloading as %1 and pipes that to cmd /q
by ShadowThief
15 Mar 2020 04:18
Forum: DOS Batch Forum
Topic: @Echo off is not working when Piping batch code to cmd
Replies: 8
Views: 308

Re: @Echo off is not working when Piping batch code to cmd

Why don't you want to use cmd /Q? That's how you do it.
by ShadowThief
11 Mar 2020 16:11
Forum: DOS Batch Forum
Topic: WRITING IN CMD
Replies: 2
Views: 287

Re: WRITING IN CMD

If you're asking how to run commands on a remote PC, use psexec . If you're asking how to run commands on a different hard drive (like D: or E:), use cd /d D:\ or pushd D:\ to move to the drive and then run the commands like normal. If you aren't asking either of these things, please ask your questi...
by ShadowThief
26 Feb 2020 19:20
Forum: DOS Batch Forum
Topic: [SOLVED] Using GNU grep in a Windows batch script?
Replies: 9
Views: 1966

Re: Using GNU grep in a Windows batch script?

If you're already using grep, couldn't you just

Code: Select all

grep ^^# input.txt >output.txt
?
by ShadowThief
09 Feb 2020 18:17
Forum: DOS Batch Forum
Topic: [SOLVED] Script to older version of files when new ones are copied in?
Replies: 7
Views: 2601

Re: [SOLVED] Script to older version of files when new ones are copied in?

Sorry ppl. I am noob. Posted some earlier replies to explained how the problem was solved by Eureka!'s solution and changed the topic to [SOLVED] but couldn't see the post I posted nor the post marked as Answered. *blush* any help is appreciated to teach me how to properly mark a topic as answered....
by ShadowThief
08 Feb 2020 07:59
Forum: DOS Batch Forum
Topic: Copy name
Replies: 27
Views: 4706

Re: Copy name

Yes, "celsius" was the antecedent to which "they" was referring. :) But yeah, classic newbie technique of going "hey, I have another question about the same project I'm working on; it's a totally different feature, but I'm already getting help in this topic so I'll just keep asking here because peop...
by ShadowThief
08 Feb 2020 04:16
Forum: DOS Batch Forum
Topic: Copy name
Replies: 27
Views: 4706

Re: Copy name

I don't want to copy their filenames, I'd like to have a Windows Explorer selection of these files, so I can copy, cut or delete them How was anybody on this planet supposed to ascertain that from your original post. Hi, Greetings to all users of this forum I need help to modify this command cmd /c...
by ShadowThief
05 Feb 2020 06:32
Forum: DOS Batch Forum
Topic: Copy name
Replies: 27
Views: 4706

Re: Copy name

Variable expansion for filename manipulation is hidden in the output of for /? for some reason, but if you manage to find it you'll see that you can use

Code: Select all

cmd /c echo|set /p="%~n2"|clip
to get the filename
by ShadowThief
03 Feb 2020 13:24
Forum: DOS Batch Forum
Topic: Batch to wipe / default Win10
Replies: 2
Views: 2061

Re: Batch to wipe / default Win10

I see you got tired of waiting on reddit. https://www.reddit.com/r/Batch/comments/ewyblf/i_have_10_reddit_awards_to_hand_out_for_working/ Just out of curiosity, what makes you think this is even possible? There is no "default Windows installation." Even during initial setup there are dozens of confi...
by ShadowThief
24 Jan 2020 07:44
Forum: DOS Batch Forum
Topic: How to get all key/value from WMIC command?
Replies: 2
Views: 1185

Re: How to get all key/value from WMIC command?

Instead of list you can use get * wmic computersystem list /format:list AdminPasswordStatus=3 AutomaticResetBootOption=TRUE AutomaticResetCapability=TRUE BootOptionOnLimit= BootOptionOnWatchDog= BootROMSupported=TRUE BootupState=Normal boot Caption=XENTRA ChassisBootupState=3 CreationClassName=Win32...
by ShadowThief
22 Jan 2020 17:31
Forum: DOS Batch Forum
Topic: right click command line help
Replies: 7
Views: 1445

Re: right click command line help

At least, you should enclose the program name - including folder - in double quotes as it contains spaces: "C:\Program Files\Software Companions\ViewCompanion Premium\viewcompanion.exe" Furthermore, the "%~dpn1" syntax is not supported everywhere, so it is very relevant how and where you start this...
by ShadowThief
21 Jan 2020 04:24
Forum: DOS Batch Forum
Topic: right click command line help
Replies: 7
Views: 1445

Re: right click command line help

What program are you using? sc.exe is already an executable that's built into Windows that controls system services, so I'm having a hard time Googling what you're using. Just guessing wildly here because I don't have all of the information that I need, your ending quote is in the wrong place. Inste...