Search found 776 matches

by einstein1969
19 Jun 2020 13:29
Forum: DOS Batch Forum
Topic: How escape a pipe ?
Replies: 3
Views: 960

Re: How escape a pipe ?

ok
the triple caret ^^^ work well.

Thank you, guy!
by einstein1969
18 Jun 2020 15:34
Forum: DOS Batch Forum
Topic: How escape a pipe ?
Replies: 3
Views: 960

How escape a pipe ?

Hi to all, I have a problem with this code for /f "delims=" %I in ('mshta "about:<OBJECT id=HTMLDlgHelper classid="CLSID:3050F4E1-98B5-11CF-BB82-00AA00BDCE0B"></OBJECT><SCRIPT language="VBSCRIPT">Sub window_onload : a=HtmlDlgHelper.object.openfiledlg("C:\windows.iso", ,"*.iso|","Select"): CreateObje...
by einstein1969
05 Mar 2020 04:12
Forum: DOS Batch Forum
Topic: mshta command for copy into clipboard
Replies: 10
Views: 4993

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: 4993

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: 4993

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: 6986

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: 6986

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: 6986

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: 6986

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: 6986

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: 1884

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: 1884

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: 1884

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: 1507

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: 28796

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"...