Conversation started Dec 30, 2020 at 8:58.
Dec 30, 2020 08:58
@JohnRennie: Hi sir. Good morning :-)
@GuruVishnu hi :-)
Did you manage to create a link to open a collection in Edge?
No sir. I tried to create a shortcut for a particular webpage by saving it. But it didn't go as planned. Things like icons and all those stuff also got saved. I don't know why, but this method seems to work well only for folders and not for applications like Edge and OneNote sir.
To open a web page you need to create a shortcut with the path set to:
C:\Windows\System32\cmd.exe /c start Microsoft-Edge:https://physics.stackexchange.com/
where I've used a link to the PSE as an example.
I'm guessing there would be some similar way of opening a tab collection, but I don't know what it is.
Ok sir.
@JohnRennie Yesterday, I tried of opening multiple folders with the same shortcut key, but only the latest one opened. So that method of just compounding doesn't work.
Or in other words, I set the shortcut for folders A and B as Ctrl+Alt+A; but only folder B opened because that was the one I added last.
Ah right, yes, I think you can only set one folder for any particular hotkey.
Generally the way you this is to write a batch file, then create a shortcut to that batch file and set a hotkey.
Then the hotkey runs your batch file.
In the batch file you can put multiple commands so you could add commands to open as many folders as you want.
Dec 30, 2020 09:07
Sounds nice. What's a batch file? I think I have to learn about it on the internet.
@GuruVishnu Are you familiar with using a command prompt?
No sir.
Click Start, then scroll down to Windows System and open it, then click on Command prompt
Opened sir. I used the search bar for the sake of simplicity :-)
OK, so you have a black command prompt window open
Dec 30, 2020 09:12
Yes sir.
You can do stuff from the command prompt by typing commands
Ok. So it's like how primitive computers were used, right?
Yes, but it's still very useful even in Windows 10.
Oh fine.
Good to know, sir.
For example type:
explorer %HOMEPATH%
This will open your home folder.
Dec 30, 2020 09:15
Yes sir.
You were asking about opening multiple folders, well you can do this using multiple commands:
explorer <folder name>
OK so far?
Ok sir. But what if there are multiple folders with the same name? Don't we need the complete address in those cases?
Yes, you need the full folder name. Have you got an example of a folder you want to open? I can show you how to open it with a command.
@JohnRennie Sir, I tried explorer Academics to open a folder named Academics in D:\\; but this opens something else in the default Documents tab.
The command needs to be:
explorer D:\Academics
i.e. you need to tell Explorer the full folder name including the drive letter.
Dec 30, 2020 09:19
Ok sir. Now got it.
A batch file is just a text file with the commands that you'd type in a command prompt, one command per line.
When you run the batch file it runs the commands in the file one line at a time exactly as if you had typed them into a command prompt.
So suppose you had the file containing:
explorer D:\Academics
explorer D:\Universities
When you run the batch file it runs both commands in turn so it would open the two folders.
Ok so far sir. I have understood everything you've explained till now.
So you create a batch file somewhere convenient. e.g. in your Documents folder create a folder called Batch, then create the batch files in that folder.
So in Documents\Batch you could create a file called Academics.bat (it has to end in .bat) and put the two commands in that file.
Then on your desktop create a shortcut to that batch file, and set the hotkey.
Now when you press the hotkey it runs that shortcut, which runs the batch file, which opens your two folders.
Ok sir. I got it. I'll experiment it immeditaly after this question. Is it really necessary for the shortcut to be on the desktop? Yesterday, I tried putting all the shortcuts inside one of the drives deep in the folder. But it didn't work out.
This probably seems a lot of fuss, but it isn't when you get used to it, and we long time hackers do this sort of thing all the time.
@GuruVishnu You can put the shortcut anywhere you want. I just suggested you put it on the desktop to make it quick to find.
Dec 30, 2020 09:27
Ok sir. But it worked only when the shortcut was in the desktop.
It should work anywhere.
If you have TeamViewer you are welcome to connect to my PC and I'll demonstrate.
@JohnRennie Ok sir. Sure.
Oh wow. Didn't you mean you controlling my computer? :-)
I can connect to you if you prefer. Shall I connect now?
By the way, I think it would be better if you delete yours.
@JohnRennie Yes sir. I hope you have my id.
Do you want to give me your password? (It will change every time so you aren't giving away anything critical)
Dec 30, 2020 09:31
Did you get it sir?
Is RATTICLE you, sir?
Yes, that's me :-)
Ok sir. Then that's fine.
How do you want to do this? Shall we try creating a batch file?
Sure. Isn't that simply a notepad file with .bat?
Yes
But I wouldn't just put the batch file on the desktop as the desktop will get cluttered.
Dec 30, 2020 09:33
I guess I might not be able to chat.
That's why I suggested creating a batch folder somewhere. Maybe Documents\Batch?
@JohnRennie Ok sir. I've a dedicated folder for that.
Did you see that location, sir?
D:\Data\System\Shortcuts
Yes, shall I edit the batch file and create the commands to open D:\Academics?
Ok sir. And for multiple folders, maybe we could use: D:/Academics/Subjects.
That's terrible on my side. I have used forward slash instead of back slash sir :-)
:-)
So do you want to try running the batch file to check it works. Just double click it.
Dec 30, 2020 09:38
I guess you can view my messages even before I send them :-)
This is interesting!
@JohnRennie Ok sir.
Ah, the file name is wrong.
It's Academics.bat.txt
We need to rename it.
Oh fine.
There, yoiu can see the name is wrong. I'll rename it now.
Ok sir.
Now try it
Dec 30, 2020 09:41
Is that the way to change a .txt file to .bat file, sir?
The problem here is that by default Explorer hides the suffix from you, and that makes it difficult to change the suffix.
Ok sir.
The easiest solution is to tell Explorer to show you the suffix, but I didn't want to change any settings without checking with you first.
@JohnRennie It works sir. A black window comes in between and I suppose it's the command prompt.
Yes, let me show you how to create the shortcut and hide the black window.
Dec 30, 2020 09:43
@JohnRennie Oh fine. From some YouTube video I did learn that we could enable extensions to be viewable. But I didn't do that as it would be bit more messay.
You can enable the extensions, edit the file name, then turn extensions off again.
@JohnRennie Ok sir. Sure.
Anyway, I'll create the sortcut now.
@JohnRennie I thought we could change the extension by merely changing it in the Save As option.
@JohnRennie Ok sir.
Ok so far sir.
I change the "Run As" to "Minimized" to hide the black command prompt window.
Do you want to choose a hotkey?
Dec 30, 2020 09:46
@JohnRennie Ok sir. But wouldn't it open the folders in the minimized view?
We'll try it and see :-)
Ok sir. Then I'll choose a random shortcut :-)
Ctrl + Alt + D; Ok sir?
OK, try it!
Nice. Black window didn't come up. But we got minimized versions.
You mean the folders opened minimized?
Dec 30, 2020 09:50
Yes sir.
Hmm, let me try ...
Or was that intentional?
@JohnRennie Ok sir.
No it wasn't intentional
It looks to me as if they opened fine.
They opened fullscreen because they remembered how you last had them open.
@JohnRennie Oh fine sir. So that "run as minimized" doesn't have any impact on these?
It shouldn't do.
Dec 30, 2020 09:52
Perfect! It's normal now.
It controls how the command prompt runs, but any folders opened by the command prompt will open as they did last time.
So do I need to always, use run as minimized?
@GuruVishnu that is purely cosmetic.
Ok sir :-)
I find it annoying to have the black window flash up then disappear.
But you can configure it any way you want.
Dec 30, 2020 09:53
Yes sir. I agree.
Do you wish to solve one more problem?
Yes ... ?
This is regarding shortcuts not in desktop for whom the hotkeys don't work.
Now, I have made a shortcut of Academics folder in my dedicated shortcuts folder.
Next, I have set Ctrl+Alt+G as its hotkey.
On pressing Ctrl+Alt+G,
the academics folder doesn't seem to open.
But if I paste the short cut on the desktop:
and set its hotkey as Ctrl+Alt+J
then on pressing the combination...
The folder opens.
But why doesn't it open in the first case, sir?
Can I try?
Sure sir.
OK ctrl-alt-J worked ...
Hmm, you're quite correct, it doesn't work in the folder.
Dec 30, 2020 10:00
Yes sir. It's not a big issue. But I'm a type of person who wishes to keep the desktop relatively clean :-)
I agree, I'm the same :-)
Oh fine. So, you too keep all those shortcuts in the desktop, sir?
Maybe it is a builtin limitation. I'll have to experiment on my own computer.
Ok sir. I think there's some way to disable desktop icons. I need to see whether it's possible to selectively disable stuff.
By the way, you could see my messages even before I send them right? I'm curious to know :-)
Yes :-)
Shall I disconnect now? I think we're done until I research how to make hotkeys work from a folder.
Disconnected!
Dec 30, 2020 10:03
@JohnRennie Ok sir. Thank you.
I'll have a play and get back to re hotkeys from a shortcut in a folder.
Ok sir. So, is it time for you to go now?
No, I'm around for another two or three hours if you want to ask anything.
OK, it looks like shortcuts only work from the desktop ...
I guess that's a deliberate design choice by Microsoft.
Hm. For me, the reason doesn't seem obvious.
You can put shortcuts on the Start menu, let me see if hotkeys work for them ...
Dec 30, 2020 10:08
Ok sir.
How would you paste the shortcuts in the start menu, sir?
There's a folder buried away that you can add stuff to and have it appear on the Start menu.
I can show you where it is if you want ...
Ok sir. Sure. Since I would be creating shortcuts for every subject it would be better to avoid clutter in the desktop.
Ah, hotkeys do work from the start menu.
Shall I connect again so I can show you where it is?
Ok sir. I believe user id is the same.
Yes ... ?
Conneted.
Dec 30, 2020 10:13
Yes sir. Noticed.
OK, I'll take over and show you where the folder is
Sure sir.
I need to turn on Hidden items
I'll turn it off again when I'm done.
Ok sir.
You see how that Shortcuts folder has appeared on the start menu now?
Dec 30, 2020 10:17
Nice sir! After this session, would you share the address of this location? I guess I need to make a lot of shortcuts :-)
And when you click on it it expands to show the shortcuts in it.
Shall I drop a link to it on the desktop?
Or put a link to it in D:\System\Shortcuts?
Ok sir.
... to avoid cluttering the desktop.
There!
Got it sir. Thank you.
You should find that if you set hotkeys on icons in that folder they will work.
Check it before you create a lot of icons! :-)
Dec 30, 2020 10:20
Ok sir. :-)
I've left Hidden items on ...
By the way, do you consider my system to be organized? Or are there any other tips?
The way you had set it up looks fine to me.
@JohnRennie I'll turn it off. It removes a lot of clutter.
@JohnRennie Ok sir. Is there anything we have to do over TeamViewer?
No, I'll disconnect now.
Dec 30, 2020 10:22
Ok sir.
Disconnected.
Damn useful this TeamViewer :-)
Yes sir :-)
I save Pictures, Downloads to D:\ instead of C:\ to save space on the SSD. Is this fine or a meaningless thing to do?
I do that as well.
I try to keep the C: drive as uncluttered as possible.
Oh fine. Good to know!
I keep all data on D: because every now and then I wipe C: and reinstall Windows.
Keeping all the data on the D: drive means I don't lose any data when I do a reinstallation.
Dec 30, 2020 10:25
Ok sir.
I'm having a doubt in chemistry. Could you tell how to arrive at the equation for strength as given below?
As far as I remember, strength is something to denote number of parts of something by total number of parts.
"Strength" just means concentration
It's just the concentration is silly units i.e. ppm instead of moles per litre
I assume it means "Strength of free iodine"
I don't see where chlorine would come from.
Ok sir. That's my mistake for not telling that this is a method to determine the amount of free chlorine in water after treatment with chlorine gas or bleaching powder.
Ah :-)
Ok sir. Let me see if I could arrive at this expression. I hope it must be easy. When I was looking over Chem.SE, it seems the equivalent concept is pretty outdated one and only books here teach them even today!
Thank you for the tech help, sir. I'm sure it would set me in the right direction for simplifying a lot of stuff.
Batch files are very useful for doing this sort of automation.
e.g. you could have your batch file open some folders on your PC and open a web page in Edge.
Dec 30, 2020 10:35
Oh. Then, it solves the other problem too! :-)
How would you command edge to open specific webpages and PDFs?
2 hours ago, by John Rennie
To open a web page you need to create a shortcut with the path set to:
C:\Windows\System32\cmd.exe /c start Microsoft-Edge:physics.stackexchange.com
Just put that command in your batch file e.g.
explorer D:\Academics
explorer D:\Academics\IveForgottenTheFolderName
C:\Windows\System32\cmd.exe /c start Microsoft-Edge:physics.stackexchange.com
@JohnRennie Oh fine! I really forgot about that. :-)
It was how everything began.
 
Conversation ended Dec 30, 2020 at 10:40.