Search found 3259 matches

by aGerman
25 Sep 2018 01:34
Forum: DOS Batch Forum
Topic: FOR loop does not increment /L %%parameter
Replies: 16
Views: 191

Re: FOR loop does not increment /L %%parameter

Do you know of an online microsoft document that explains in detail all these wmic sql dialect options ? ASSOC is a verb such as GET or CALL. https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2003/cc784966(v=ws.10) I wouldn't call that a detailed explanation though. A...
by aGerman
24 Sep 2018 14:21
Forum: DOS Batch Forum
Topic: FOR loop does not increment /L %%parameter
Replies: 16
Views: 191

Re: FOR loop does not increment /L %%parameter

I didn't read the whole thread ... I'm searching only for USB Flash devices What about for /f tokens^=2^ delims^=^" %%i in ( 'WMIC Path Win32_DiskDrive Where "InterfaceType='USB'" Assoc /assocclass:Win32_DiskDriveToDiskPartition 2^>nul ^|findstr /c:"Disk #"' ) do for /f tokens^=4^ delims^=^" %%j in ...
by aGerman
22 Sep 2018 03:06
Forum: DOS Batch Forum
Topic: Bodenstrich
Replies: 2
Views: 68

Re: Bodenstrich

The common language in this forum is English. Most of the people here come from all over the world and don't even understand your question. The blinking underscore you want to remove is the cursor. You can't do that using Batch but you can use tools that are able to do that for you. E.g. CursorSize....
by aGerman
21 Sep 2018 15:18
Forum: DOS Batch Forum
Topic: Cmdwiz - cmd helper tools (now with Unicode)
Replies: 37
Views: 5696

Re: Cmdwiz - cmd helper tools (now with Unicode)

That's quite annoying, I know :lol: I attached a resource file that you can use for C and C++ apps on Windows. I tried to keep it easy for you to update the values (using a little macro magic and some links to the documentations). Add it to your project, and after the compilation see what file prope...
by aGerman
21 Sep 2018 08:05
Forum: DOS Batch Forum
Topic: Batch file to copy and rename file with ipaddress.extension
Replies: 2
Views: 42

Re: Batch file to copy and rename file with ipaddress.extension

Try

Code: Select all

for /f "delims=: tokens=2" %%i in ('ipconfig^|findstr "\<IPv4"') do for /f "tokens=*" %%j in ("%%i") do copy "Expeditool.accdb" "Expeditool%%j.accdb"
The IP address is assigned to %%j in this example.

Steffen
by aGerman
18 Sep 2018 04:21
Forum: DOS Batch Forum
Topic: consolesoft.com is closing
Replies: 13
Views: 387

Re: consolesoft.com is closing

I agree. The only benefit of code signing is that you can make sure the executable was not altered during uploading, on the web host, or during downloading. Because of your concerns about false positives I already wrote some notes over there: https://www.dostips.com/forum/viewtopic.php?f=3&t=7570&p=...
by aGerman
08 Sep 2018 07:00
Forum: DOS Batch Forum
Topic: Cmdwiz - cmd helper tools (now with Unicode)
Replies: 37
Views: 5696

Re: Cmdwiz - cmd helper tools (now with Unicode)

You might try to change your code a little. Also try to figure out what AV engine Mediafire uses and upload your changed files to VirusTotal in order to see which engines report false positives. In my latest reply of the CONVERTCP thread I wrote some possibilities of what you could try. First of all...
by aGerman
07 Sep 2018 14:25
Forum: DOS Batch Forum
Topic: Center Window and Move Window (yet more Powershell hybrids)
Replies: 6
Views: 152

Re: Center Window and Move Window (yet more Powershell hybrids)

Thanks for your feedback, IcarusLives :) Much appreciated.

Steffen
by aGerman
07 Sep 2018 14:15
Forum: DOS Batch Forum
Topic: Center Window and Move Window (yet more Powershell hybrids)
Replies: 6
Views: 152

Re: Center Window and Move Window (yet more Powershell hybrids)

I updated the initial post with an additional move_window macro.

Steffen
by aGerman
06 Sep 2018 14:59
Forum: DOS Batch Forum
Topic: Center Window and Move Window (yet more Powershell hybrids)
Replies: 6
Views: 152

Re: Center Window (yet another Powershell hybrid)

Since the macro is called "center" I can't think of any further locations that deserve this name :wink: Of course it would be possible to move the window to any position you want but in that case "center" would be rather misleading. If you want me to write another script to move the window to certai...
by aGerman
06 Sep 2018 13:44
Forum: DOS Batch Forum
Topic: Center Window and Move Window (yet more Powershell hybrids)
Replies: 6
Views: 152

Center Window and Move Window (yet more Powershell hybrids)

Center Window: @echo off &setlocal DisableDelayedExpansion mode con lines=20 cols=50 (set \n=^^^ %= This creates an escaped Line Feed - DO NOT ALTER =% ) set center=for %%i in (1 2) do if %%i==2 (%\n% %=% if defined arg set arg=!arg:/?=help!%\n% %=% for /f %%j in ("!arg! middle") do (%\n% %=====% po...
by aGerman
06 Sep 2018 10:34
Forum: DOS Batch Forum
Topic: Refresh Desktop (Powershell hybrid)
Replies: 6
Views: 195

Re: Refresh Desktop (Powershell hybrid)

Squashman wrote:
05 Sep 2018 18:17
Not sure if that would be faster.
I'm pretty sure it would be faster but only if you reuse the compiled utility :wink:
I just tried to keep it a scripting solution.

Steffen
by aGerman
05 Sep 2018 14:24
Forum: DOS Batch Forum
Topic: Refresh Desktop (Powershell hybrid)
Replies: 6
Views: 195

Re: Refresh Desktop (Powershell hybrid)

Thank you for testing ShadowThief! Now I suspect it will work from XP onwards and I'm fully aware that it doesn't make any sense to try on even older versions. As you said Powershell did not belong to XP. It was introduced in 2006 and became a default installation in Win7. However once Powershell wa...
by aGerman
05 Sep 2018 10:44
Forum: DOS Batch Forum
Topic: Refresh Desktop (Powershell hybrid)
Replies: 6
Views: 195

Refresh Desktop (Powershell hybrid)

In that thread the question came up how to refresh the desktop programmatically. https://www.dostips.com/forum/viewtopic.php?f=3&t=8805 Using platform invokation you can use Windows API functions in a little Powershell snippet. A lot of different API calls can be found in the internet to simulate th...
by aGerman
02 Sep 2018 13:30
Forum: DOS Batch Forum
Topic: CONVERTCP.exe - Convert text from one code page to another
Replies: 71
Views: 18612

Re: CONVERTCP.exe - Convert text from one code page to another

Carlos' concerns about false positives of AntiVirus software in his recent thread ... https://www.dostips.com/forum/viewtopic.php?f=3&t=8813&p=57913#p57911 ... make me write some sentences about the VirusTotal links of CONVERTCP. - I wrote the code and hence I already know that the program isn't mal...