Search found 774 matches

by einstein1969
05 Mar 2020 04:12
Forum: DOS Batch Forum
Topic: mshta command for copy into clipboard
Replies: 10
Views: 1494

Re: mshta command for copy into clipboard

@aGerman thank, this work!!!!!!!! The problem is the case sensitive and the manage of doube quote and single quote. I don't understand how I should use this. You said I didn't use event management well, what do you mean? Can you give me an example? @Siberia_man Thanks . I will use the "clip" command...
by einstein1969
04 Mar 2020 15:02
Forum: DOS Batch Forum
Topic: mshta command for copy into clipboard
Replies: 10
Views: 1494

Re: mshta command for copy into clipboard

@jfl & @siberia_man I use this code in a tool that execute one line command and i don't want execute a cmd windows if possible because i need execute hidden and i don't want use file. Is too complicate for me assembly the code. Can you help me? @hacxx this is an example and is very long and work msh...
by einstein1969
02 Mar 2020 06:45
Forum: DOS Batch Forum
Topic: mshta command for copy into clipboard
Replies: 10
Views: 1494

mshta command for copy into clipboard

Hi, I have this command that show a group of button for launch varius script mshta.exe "about:<META HTTP-EQUIV="MSThemeCompatible" CONTENT="YES"><title>Avvio Bots</title><HTA:APPLICATION ID="" CONTEXTMENU="no" BORDER="none" BORDERSTYLE="complex" SHOWINTASKBAR="no" SCROLL="no"/><body style="padding:2...
by einstein1969
23 Feb 2020 14:18
Forum: DOS Batch Forum
Topic: execute simple cmd line hidden without file
Replies: 12
Views: 2651

Re: execute simple cmd line hidden without file

@aGerman
Thanks

@Eureka!
it was a nice solution, because the execution was faster, but the mysterious software does not take shortcuts. The software, however, is called "macro recorder"
by einstein1969
23 Feb 2020 11:56
Forum: DOS Batch Forum
Topic: execute simple cmd line hidden without file
Replies: 12
Views: 2651

Re: execute simple cmd line hidden without file

thank you all!

I have probed to semplify and this is the result:

Code: Select all

mshta.exe vbscript:CreateObject("WScript.Shell").Run("cmd /c calc.exe",0)(Window.Close)
Thank you.
by einstein1969
22 Feb 2020 15:09
Forum: DOS Batch Forum
Topic: execute simple cmd line hidden without file
Replies: 12
Views: 2651

Re: execute simple cmd line hidden without file

Well, you already use a 3rd party tool. Would it be OK then if you just use a HTA script instead? run_hidden.hta <!DOCTYPE html> <html dir="ltr" lang="en-US"> <head> <meta charset="utf-8"> <meta http-equiv="x-ua-compatible" content="IE=9"> <title>Run Hidden</title> <script type="text/javascript"> f...
by einstein1969
21 Feb 2020 17:53
Forum: DOS Batch Forum
Topic: execute simple cmd line hidden without file
Replies: 12
Views: 2651

Re: execute simple cmd line hidden without file

Hi penpen and thanks, I tried and from a dos window it works but from the software it doesn't. Opens the blue powershell window! I had to slightly modify the command that went into error for my software. "C:\WINDOWS\system32\WindowsPowerShell\v1.0\powershell.exe" "-Command" "$wshShell = New-Object -...
by einstein1969
21 Feb 2020 09:04
Forum: DOS Batch Forum
Topic: execute simple cmd line hidden without file
Replies: 12
Views: 2651

execute simple cmd line hidden without file

Hi, I recently use a software that can run/open a program. It accept a 1) program name e 2) parameters to pass at program name. I used this for simple dos command using the command dos shell cmd.exe in this mode Name : cmd.exe Param: /c "...……………" But this method open a black cmd windows and this is...
by einstein1969
29 Nov 2019 03:57
Forum: DOS Batch Forum
Topic: Increment a variable with setx
Replies: 4
Views: 1099

Re: Increment a variable with setx

Ok! Thanks.
by einstein1969
28 Nov 2019 18:30
Forum: DOS Batch Forum
Topic: Increment a variable with setx
Replies: 4
Views: 1099

Re: Increment a variable with setx

but if i check the global environment with another process the variable X is not incremented. Why?
How I can increment a variable over process?
by einstein1969
28 Nov 2019 16:57
Forum: DOS Batch Forum
Topic: Increment a variable with setx
Replies: 4
Views: 1099

Increment a variable with setx

Hi to all, I return on this forum after a long time and i not remember how work the dos batch... I use a macro recorder that have a possibility ok run an external command like CMD.EXE or OTHER I need to use a variable and I need to increment this variable. I have probed with setx x 2 cmd.exe /v:on /...
by einstein1969
01 Nov 2018 10:24
Forum: DOS Batch Forum
Topic: Seven segment display
Replies: 2
Views: 1098

Re: Seven segment display

Hi Icarus, very nice work!
This is very fast color graphics
by einstein1969
05 Jun 2018 08:44
Forum: DOS Batch Forum
Topic: Dos Batch Math Library
Replies: 59
Views: 24330

Re: Dos Batch Math Library

Hey, I wanted to share something I made last night. I thought maybe this would be useful FIXED! Accuracy is 100% https://gyazo.com/1765c4579c80f2688789b12901d762ad.png @echo off & setlocal enableDelayedExpansion for /l %%a in (1,1,20) do ( set /a "rnd1=!random! %% 49 + 1", "rnd2=!random! %% 49 + 1"...
by einstein1969
04 Jun 2018 08:21
Forum: DOS Batch Forum
Topic: Dos Batch Math Library
Replies: 59
Views: 24330

Re: Dos Batch Math Library

Sorry to dig this up, but I've found use out of this. I was also wondering if it were possible to create a POW macro such as this? Thanks in advanced!! the pow function is reconducible to log function and exp function. pow( x, y ) => exp( y * log( x ) ) I will try to attemp using this article https...
by einstein1969
27 May 2018 16:33
Forum: DOS Batch Forum
Topic: How does this colour Batch script work?
Replies: 4
Views: 1441

Re: How does this colour Batch script work?

The new windows version 10 include more color using VT100 escape sequences The code iterate in HSL colors and convert to RGB and put a color char using escape sequence this code show more colors, use raster fonts 4x6 to get in full screen @echo off & setlocal enabledelayedexpansion mode 260,92 for /...