Search found 779 matches

by einstein1969
31 Mar 2021 03:06
Forum: DOS Batch Forum
Topic: read sfc output
Replies: 4
Views: 1576

Re: read sfc output

@squashman This is the output on console when execute "sfc /scannow" on cmd windows: Avvio in corso dell'analisi del sistema. Attendere. L'operazione richiederà alcuni minuti. Avvio in corso della fase di verifica dell'analisi del sistema. 2% della verifica completato. - Is there a way to capture th...
by einstein1969
30 Mar 2021 15:24
Forum: DOS Batch Forum
Topic: read sfc output
Replies: 4
Views: 1576

read sfc output

Hi,

I need to read the output of the command "sfc /scannow" with dos batch/powershell.

I have searched the web and there are some solutions but nothing very clear to me.

i would use dos batch commands if possible and powershell as well.

It is possible?

Einstein1969
by einstein1969
27 Mar 2021 03:26
Forum: DOS Batch Forum
Topic: Definition and use of arithmetic "functions" in Batch files
Replies: 27
Views: 17110

Re: Definition and use of arithmetic "functions" in Batch files

Hi, there is an error on function: set "CSecToHMSC(CSec)=( a=(CSec), c=a%%100, a/=100, s=a%%3600, a/=3600, m=a%%60, h=a/60, h*1000000+m*10000+s*100+c )" it should be set "CSecToHMSC(CSec)=( a=(CSec), c=a%%100, a/=100, s=a%%60, a/=60, m=a%%60, h=a/60, h*1000000+m*10000+s*100+c )" can someone confirm?
by einstein1969
19 Jun 2020 13:29
Forum: DOS Batch Forum
Topic: How escape a pipe ?
Replies: 3
Views: 2081

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

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

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

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

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

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

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

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

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

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

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

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?