Search found 880 matches

by ShadowThief
19 Mar 2019 23:47
Forum: DOS Batch Forum
Topic: Get folder size to continue
Replies: 13
Views: 186

Re: Get folder size to continue

con is a reserved filename. You shouldn't be able to make a folder with that name.
by ShadowThief
17 Mar 2019 11:44
Forum: DOS Batch Forum
Topic: BATCH interactions with opened .exe
Replies: 5
Views: 110

Re: BATCH interactions with opened .exe

Technically yes, since xlsx/xlsm/xls* files are nothing more than an archive of XML files, but the way to do it is super convoluted since you would have to extract the files, update the XML, and repack the files all using pure batch. It can be done, but you really, really, really don't want to do th...
by ShadowThief
28 Feb 2019 20:31
Forum: DOS Batch Forum
Topic: How to eliminate the spaces in a line in a text file
Replies: 9
Views: 248

Re: How to eliminate the spaces in a line in a text file

Aacini wrote:
28 Feb 2019 20:06
  • Lines 4 and 5 in the output example are wrong, because they should include one space at beginning...
lalat06bag wrote:
28 Feb 2019 15:53
If the line started with spaces too and it exceeds the character limit, the spaces should be eliminated.
These don't match
by ShadowThief
13 Feb 2019 18:41
Forum: DOS Batch Forum
Topic: Download and unzip file Batch
Replies: 34
Views: 790

Re: Download and unzip file Batch

Chocolatey is only for installing software. Now you just run PHP like you would if you downloaded and installed it manually.
by ShadowThief
12 Feb 2019 17:11
Forum: DOS Batch Forum
Topic: Download and unzip file Batch
Replies: 34
Views: 790

Re: Download and unzip file Batch

The errors while installing Chocolatey are from having outdated versions of the .NET framework and powershell, the other errors are apparently from internet connectivity problems that wouldn't be affected by the version of the .NET framework.
by ShadowThief
11 Feb 2019 18:47
Forum: DOS Batch Forum
Topic: Download and unzip file Batch
Replies: 34
Views: 790

Re: Download and unzip file Batch

It's a program you install that lets you download software from various repositories, like how apt-get does. It's the closest thing you're gonna get.
by ShadowThief
11 Feb 2019 04:53
Forum: DOS Batch Forum
Topic: Download and unzip file Batch
Replies: 34
Views: 790

Re: Download and unzip file Batch

I think you're thinking of Chcolatey. apt-get has not been ported to Windows.
by ShadowThief
29 Jan 2019 20:30
Forum: DOS Batch Forum
Topic: Short WAV files-is there no standard player to call from batch?
Replies: 28
Views: 6726

Re: Short WAV files-is there no standard player to call from batch?

You should convert your wav files to mp3 so they will load quicker. when you convert wav to mp3 frequencies that are not audible to most people are cut of which results in a smaller file. So by converting wav to mp3 you loose information, that is why it doesn't make sense to convert an mp3 to wav. ...
by ShadowThief
28 Jan 2019 21:02
Forum: DOS Batch Forum
Topic: could anybody help with dos commands for this task
Replies: 16
Views: 538

Re: could anybody help with dos commands for this task

I think he already has the user name and password and he needs to pass both of those to a login prompt (at least I hope that's what he means; how do you not know your own username and password?). We've definitely covered passing multiple user inputs to a script or program somewhere on here before...
by ShadowThief
26 Jan 2019 22:13
Forum: DOS Batch Forum
Topic: Is there any standard equivalent of a .bashrc script for cmd?
Replies: 10
Views: 380

Re: Is there any standard equivalent of a .bashrc script for cmd?

Couldn't we just include the doskey alias file in a cmd shortcut?
by ShadowThief
23 Jan 2019 21:09
Forum: DOS Batch Forum
Topic: I need some help Please
Replies: 3
Views: 179

Re: I need some help Please

Code: Select all

FOR /f "tokens=2delims==" %%x IN ('set $') DO SET "var1=!var1:%%x= "!"
Note that I haven't actually tested this, I just changed what is literally the only underscore in the entire code to a regular space.
by ShadowThief
22 Jan 2019 17:34
Forum: DOS Batch Forum
Topic: Numbers in batch game code not making sense
Replies: 3
Views: 165

Re: Numbers in batch game code not making sense

Using quotes with GTR (and LSS, GEQ, LEQ, and so forth) forces a string comparison instead of a numeric comparision. 9 is greater than 1, so any number starting with 9 will be considered larger than any number starting with 1. Remove the quotes for the last comparison.
by ShadowThief
11 Jan 2019 17:34
Forum: DOS Batch Forum
Topic: Batch file help. Needing to position windows.
Replies: 15
Views: 513

Re: Batch file help. Needing to position windows.

Does embedding the program in the script as base64 count as downloading it? (My work has a similar policy, so I'm guessing it does.)

I know the Powershell looks like a lot, but the vast majority of it is just setting stuff up to make it work.
by ShadowThief
10 Dec 2018 15:55
Forum: DOS Batch Forum
Topic: Get current directories
Replies: 3
Views: 248

Re: Get current directories

Code: Select all

echo %CD%