New
#11
Thanks for the update hukre. I'll have to try myself when I get back to my PC.
Thanks for the update hukre. I'll have to try myself when I get back to my PC.
hukre,
Alter the shortcut's Target field.
Right-click on the shortcut, select Properties.
In front of the path to the batch file, type in
explorer.exe {followed by a space}
so it becomes something like
explorer.exe D:\Desktop\SomeBachFile.bat
and click on OK.
Now right-click on the [modified] shortcut again and it will offer the option to Pin to Taskbar
All the best,
Denis
Last edited by Try3; 23 Oct 2021 at 15:22.
Thank you Try3 for your detailed input. It works just great. I am just astonished about all those tips like yours, my search on google didn't turn up anything, and I wonder if anything like that is written down in any Windows 10 book or if people find these by trial and error.
hukre
Much of it is trial on error [but guided by reason in many cases].
There's a lot of guidance in TenForumsTutorials - see, for example, Pin File to Taskbar [renaming method] - TenForumsTutorials
There's also a lot of guidance in other TenForums threads - see, for example, Pin anything to taskbar [Edwin renaming method] - TenForums
It's really worth making time to browse through the Tutorial index - there's a shortcut to it at the top of every page.- At the foot of the Tutorial index is a shortcut to download it as a spreadsheet.- Tutorials are also listed by category at Tutorials - there's also a shortcut to that at the top of every page.
- I download a new copy each month.
- By downloading it as a spreadsheet I can benefit from Excel's excellent filtering capabilities when I search for topics of interest.
- Both tutorial lists are searchable.
- You can also search for TenForumsTutorials in many general search engines, such as Google, by adding site:tenforums.com/tutorials after your search term. For example,
taskbar toolbars site:tenforums.com/tutorials
You can search TenForums using the search box in the top-right corner of all TenForums webpages or using Advanced Search - TenForums
- You can also search TenForums threads in many general search engines, such as Google, by adding site:tenforums.com after your search term. For example,
Search for drivers by HardwareID site:tenforums.com
- [This is what the search box in the top-right corner of TenForums webpages does automatically]
Welcome to TenForums,
Denis
Thank you very much Try3 for posting such great information. I will certainly make use of it instead of wasting many hours searching for solutions to my problems on the internet only to find out that some of them are several years old and don't apply to the latest vesrsion of Windows 10 anymore.
The easiest way to make the cmd /c window invisible is to use a VBScript that contains the following code:
You can create a new shortcut that points to this .vbs file.Code:Dim wshShell Set wshShell = CreateObject("WScript.Shell") wshShell.Run """%windir%\System32\cmd.exe"" /c start ""My window title"" ""C:\users\batchfiles\testing.bat""", 0 Set wshShell = Nothing
- - - Updated - - -
...Or if you just want to run the batchfile invisibly:
Code:Dim wshShell Set wshShell = CreateObject("WScript.Shell") wshShell.Run """C:\users\batchfiles\testing.bat""", 0 Set wshShell = Nothing