Search found 39 matches

by alexandredneto
20 Aug 2018 12:04
Forum: DOS Batch Forum
Topic: Windows environment variable
Replies: 1
Views: 1923

Windows environment variable

Hello!

How to display in JavaScript code any Windows environment variable?

How to display in JavaScript code any Windows environment variable?

I think it is possible using Internet Explorer ActiveX and the oShell.Run () command. Can not have .bat on the client side.

Thank you.
by alexandredneto
02 Jul 2015 12:21
Forum: DOS Batch Forum
Topic: Working with variable
Replies: 2
Views: 2545

Working with variable

Hello guys. In the code below, in the first loop to enter the value 1234 in the ID field. In the second loop, key to enter without entering any value in the ID field. It is considered the previous value. How to correct it? Delete the variable? Thanks. @echo off SET create_user="criar_usuario.cm...
by alexandredneto
30 Jun 2015 13:52
Forum: DOS Batch Forum
Topic: User creation by command - NET USER
Replies: 9
Views: 7927

Re: User creation by command - NET USER

I did not succeed to simulate. And you?
by alexandredneto
30 Jun 2015 06:27
Forum: DOS Batch Forum
Topic: User creation by command - NET USER
Replies: 9
Views: 7927

Re: User creation by command - NET USER

It is Windows Server 2003 Standard Edition SP2.
For the company's IT security policy, this link is not available for consultation.
:-(
by alexandredneto
29 Jun 2015 11:11
Forum: DOS Batch Forum
Topic: User creation by command - NET USER
Replies: 9
Views: 7927

Re: User creation by command - NET USER

D:\>NET USER 12345678901 ABcd@123 /ADD /FULLNAME:"JUAN DA SILVA DIAS" /comment:"CPF 123.456.789-01" /logonpasswordchg:yes The option /LOGONPASSWORDCHG:yes is unknown. The syntax of this command is: NET USER [username [password | *] [options]] [/DOMAIN] username {password | *} /A...
by alexandredneto
29 Jun 2015 10:32
Forum: DOS Batch Forum
Topic: User creation by command - NET USER
Replies: 9
Views: 7927

Re: User creation by command - NET USER

Create the user with parameter to be forced to change the password to login.
by alexandredneto
29 Jun 2015 08:21
Forum: DOS Batch Forum
Topic: User creation by command - NET USER
Replies: 9
Views: 7927

User creation by command - NET USER

How do I create a local user net user command, and user owned display marking (enabled) field: "User must change password at next logon"?
by alexandredneto
26 Jun 2015 11:05
Forum: DOS Batch Forum
Topic: Escape Character
Replies: 1
Views: 2395

Escape Character

Hello, everyone. The content of the WS script variable (below) has a space. And it generates an error. It can be used escape characters? If yes, how can it be done? Thank you. @echo off SET STRCOMPUTER=Server003 SET STRLOGIN=%1 SET WS="ws0910 Ord_51x.bat.lnk" if not exist "\\%STRCOMPU...
by alexandredneto
25 Jun 2015 13:49
Forum: DOS Batch Forum
Topic: It is string consists of digits?
Replies: 6
Views: 4119

Re: It is string consists of digits?

I expressed myself badly. Excuse me. Yes the code is well done. But needs some adjustments. Therefore, it is returning as digits: space, empty, comma, for example: D:\>test a other characters found D:\>test 9 all digits D:\>test all digits D:\Script\Cria_atalho_vbs\teste>test , all digits D:\Script\...
by alexandredneto
25 Jun 2015 13:34
Forum: DOS Batch Forum
Topic: It is string consists of digits?
Replies: 6
Views: 4119

Re: It is string consists of digits?

I did not like merge your code in my above.

I want a code that do:
It is assigned a value in the string by argument, and then do the validation if they are only digits.
by alexandredneto
25 Jun 2015 12:08
Forum: DOS Batch Forum
Topic: It is string consists of digits?
Replies: 6
Views: 4119

It is string consists of digits?

Hello. My script is not working. I want to check if you have any other than I type. Code below: SET STRCPF=%1 echo.%STRCPF%>len for %%a in (len) do set /a len=%%~za -2 SETLOCAL ENABLEDELAYEDEXPANSION FOR /L %desloca% in (1,1%len%) DO ( echo desloca=%desloca% set "X=!STRCPF:~%desloca%,1!" I...
by alexandredneto
06 Jun 2014 07:01
Forum: DOS Batch Forum
Topic: Cache - *.BAT
Replies: 4
Views: 3342

Re: Cache - *.BAT

This occurred a few times. And it's kind of confusing. When I make a functional version of the code (no errors) in c:\Programs\A. And develop another version of the code. I suddenly realize that the development is not going well, there are errors. And go back to develop the previous version (which w...
by alexandredneto
05 Jun 2014 13:44
Forum: DOS Batch Forum
Topic: PSEXEC + WMIC
Replies: 1
Views: 2834

PSEXEC + WMIC

Dear sirs. When I run the statement (below), it does not end. Manually digit CTRL + BREAK. It is finalized. psexec \ \ server_01 wmic useraccount WHERE "Name = 'user_new'" SET PasswordExpires = FALSE I made tests closing in 5 seconds, sometimes 5 minutes. No matter what time the command is...
by alexandredneto
03 Jun 2014 12:07
Forum: DOS Batch Forum
Topic: Cache - *.BAT
Replies: 4
Views: 3342

Cache - *.BAT

Hello, everyone.

There is a cache (storage) on Windows files (bat) memory that were executed?

Thank you.
by alexandredneto
28 May 2014 06:16
Forum: DOS Batch Forum
Topic: Environment variable
Replies: 1
Views: 2149

Environment variable

Hello, everyone.

When it executes a bat file type, there is an environment variable that is stored the name of the bat file running?

thank you