Search found 25 matches

by Jedininja
11 Apr 2022 02:03
Forum: DOS Batch Forum
Topic: batch file code delete stubborn file ?
Replies: 3
Views: 6248

Re: batch file code delete stubborn file ?

I have done extensive testing on how to delete stubborn files and i have a few solutions. A) Edit group policy to allow the user about to delete files admirative permissions. - open gpedit.exe - goto Local Computer Policy / Computer Configuration / Windows Settings / Security Settings / User Rights ...
by Jedininja
17 Jan 2022 05:19
Forum: DOS Batch Forum
Topic: HDD size
Replies: 8
Views: 7949

Re: HDD size

Wmic VOLUME GET freespace, capacity, serialnumber may be helpful. ) Do For /F "EOL=S" %%H In ('%SystemRoot%\System32\wbem\WMIC.exe DiskDrive Where /webm/ should very much not be there. i once decrypted memtest.exe and found webm & webp tags itself all over ram sectors... same for bootconfig, it als...
by Jedininja
17 Jan 2022 04:28
Forum: DOS Batch Forum
Topic: batch script to log into email account
Replies: 6
Views: 11272

Re: batch script to log into email account

I have an idea. since op is stuck 13 years in the past. we need to save him from the gravitational time anomaly he and/or she is most likely stuck in, and do to the severity of op's assumed problems we must deduce the variables needed to answer op's clearly imperative question. So... A) Op's need to...
by Jedininja
17 Jan 2022 03:50
Forum: DOS Batch Forum
Topic: batch script to log into email account
Replies: 6
Views: 11272

Re: batch script to log into email account

1) The OP is from 2009. 2) We don't know the browser the op is using, so we can't know whether or not that browser is capable of auto login. 3) Adding login and password to cookies never ever is a good idea. 4) Unless the website doesn't support outo login, adding login and password to a cookie hav...
by Jedininja
16 Jan 2022 23:05
Forum: DOS Batch Forum
Topic: I have some suggestions for dostips!
Replies: 7
Views: 6819

Re: I have some suggestions for dostips!

[/quote]
This is not Powershell. You are just executing two known programs on Windows
[/quote]

i find this unsettling sir... Do you know if Netsh and Wmic are native to windows 10 at all?
by Jedininja
16 Jan 2022 20:15
Forum: DOS Batch Forum
Topic: Wokring out battle messages and lol
Replies: 3
Views: 5160

Re: Wokring out battle messages and lol

If i rremember right, then random is a non negative and non zero 16-bit signed int, so the result of "%random%/10922" should be either 0, 1, 2 or 3: - 0 if %random% is in [1, 10921] - 1 if %random% is in [10922, 21843] - 2 if %random% is in [21844, 32765] - 3 if %random% is in [32766, 32767] it sur...
by Jedininja
16 Jan 2022 19:31
Forum: DOS Batch Forum
Topic: I have some suggestions for dostips!
Replies: 7
Views: 6819

Re: I have some suggestions for dostips!

This is more of a place for experts to talk to other experts about high-level batch concepts and understand more about how the interpreter works. If you want an engaging community, go to Reddit or Discord. High level is right, i don't really understand all the expanded or extended variables everyon...
by Jedininja
16 Jan 2022 19:19
Forum: DOS Batch Forum
Topic: I have some suggestions for dostips!
Replies: 7
Views: 6819

Re: I have some suggestions for dostips!

DosTips is a specialized forum. We discuss Windows-Batch related topics which makes this forum unique and is the reason why it stands out from the crowd. And this is also what the host name states. There are platforms like Twitter or Facebook which are made to share general chatter. We don't need i...
by Jedininja
15 Jan 2022 04:08
Forum: DOS Batch Forum
Topic: I have some suggestions for dostips!
Replies: 7
Views: 6819

I have some suggestions for dostips!

hi, i have some ideas for the dostips... and no place to state them!! -Off topic forum for posts like 3word story's, sharing of websites and general bantering! -A Larger Profile description, 500 characters is only 2 times better than twitter, nuff said. -A place on the profile to showcase code and o...
by Jedininja
15 Jan 2022 03:35
Forum: DOS Batch Forum
Topic: batch script to log into email account
Replies: 6
Views: 11272

Re: batch script to log into email account

ShadowThief wrote:
14 Jan 2022 07:42
Batch can't interact with GUIs. Use Selenium if you want to automate interacting with a web browser.
you could just set the browser to auto log in? and then start it from a batch file. perhaps adding the loggin & password to the browsers cookies?
by Jedininja
15 Jan 2022 02:58
Forum: DOS Batch Forum
Topic: Batch File - For Loop Problems
Replies: 6
Views: 10258

Re: Batch File - For Loop Problems

some things i noticed, you were trying to add ecm- to %%a before it was defined and also Defining %%a and applying %%a must happen on the same line. This statement is just wrong. i have personally had a lot of problems using special characters as graphic characters in echo statements, and i am admi...
by Jedininja
14 Jan 2022 06:53
Forum: DOS Batch Forum
Topic: Batch File - For Loop Problems
Replies: 6
Views: 10258

Re: Batch File - For Loop Problems

some things i noticed, you were trying to add ecm- to %%a before it was defined and also Defining %%a and applying %%a must happen on the same line. Echoing special characters causes a lot of crap, ~^=+*. use ---- for graphics. SET ECMArchData=ECM-OS-Arch.txt FOR /F %%a IN (%ECMArchData%) DO ( IF NO...
by Jedininja
14 Jan 2022 06:29
Forum: DOS Batch Forum
Topic: Errorhandling in dos .bat files
Replies: 3
Views: 10522

Re: Errorhandling in dos .bat files

basically just place errorlevel strings where you feel you are likely to have errors and move them around to narrow down the potential causes. Microsofts website lists over 16,000 errorcodes! will echo an error code IF ERRORLEVEL 1 ECHO %ERRORLEVEL% will inact error resolution1 if that fails error r...
by Jedininja
14 Jan 2022 06:16
Forum: DOS Batch Forum
Topic: batch script to log into email account
Replies: 6
Views: 11272

Re: batch script to log into email account

i have tried this before, but it is hard to target the username/password boxes simply add the link as a line in your batch file and it will open a tab in the default browser at that page. im not sure how to log into it though. start "" "www.gmail.com" the link must start with www. or http. or https....
by Jedininja
14 Jan 2022 05:52
Forum: DOS Batch Forum
Topic: Moving backed-up files to a folder named by date.
Replies: 3
Views: 8261

Re: Moving backed-up files to a folder named by date.

will only work within the day md c:\temp\temper%date:~-4,4%%date:~-7,2%%date:~0,2% xcopy /e /i /q /-y drive\path\ c:\temp\temper%date:~-4,4%%date:~-7,2%%date:~0,2% i got this line %date:~-4,4%%date:~-7,2%%date:~0,2% from microsoft! from what i understand the numeric values determine the position and...