Tired of opening a file at folder location at D:\Folder A\Folder B\Folder C\Folder D?

I have a simpler solution to open file at folder location at D:\Folder A\Folder B\Folder C\Folder D by creating create batch file... Batch file experts kindly let me know in case of any amendments possible in below approach. πŸ˜€πŸ˜€

Here we go!!
1. Open a notepad and write below command there. Path to the file is in bold fonts.

#-Link-Snipped-# off
start explorer D:\FolderA\FolderB\FolderC\MyFile.xls


2. Go to File>> Save As
3. Save the file with .bat extension (.bat stands for batch file). Let the file name is MyFile.bat
4. Save this file in C Drive or any Drive's main location. Let I save the file in C Drive

5. Now, when you want to open file, just go through Start >> Run
6. Type C:\MyFile.bat and press Enter key..
Your file will be opened. πŸ˜€πŸ˜€
In the similar manner, we can open any folder or file which is present in nested folders. Actuality I find this approach handy since I need to open number of files in day to day activities. Hope, everyone finds it helpful.

Again I request the batch file experts, let me know if you guys have any better approach!! Thanks. πŸ˜€

Replies

  • Anoop Kumar
    Anoop Kumar
    Are you using XP/Vista?
    In windows 7 you can pin the program (say Excel) in task-bar and then open the file. Right click on taskbar Excel and pin that file as favorite.
    You can close the files. Whenever you want to open the file just hover/right click on task-bar excel and choose the file from pinned option.
    I really like this super cool feature of Windows 7.
    I wish is there any add-on available for Linux too.
  • Koushal Patel
    Koushal Patel
    Anoop Kumar
    Are you using XP/Vista?
    In windows 7 you can pin the program (say Excel) in task-bar and then open the file. Right click on taskbar Excel and pin that file as favorite.
    You can close the files. Whenever you want to open the file just hover/right click on task-bar excel and choose the file from pinned option.
    I really like this super cool feature of Windows 7.
    I wish is there any add-on available for Linux too.
    Yeah I agree with you #-Link-Snipped-# !! I am also enjoying that feature of Win 7 like you for few files.

    Actually at my work location, I have to access many documents and folders everyday. That's why I am using batch file approach. Also, many files are stored in some other servers. So creating pinned shortcut for every file will eat lots of space, I guess. Please advise. πŸ˜€

    Also, I was wondering, how the commands like mspaint, iisreset works from Start >> Run. Please make me learn how to create commands like these.
  • Koushal Patel
    Koushal Patel
    FYI, I searched various stuffs in internet to make myself learn "how the commands like mspaint, iisreset works from Start >> Run." but not getting adequate help.

    Please let me know if anyone knows about this. Thanks in advance!! πŸ˜€πŸ˜€
  • Anoop Kumar
    Anoop Kumar
    It's in path of environment variable . See for system32 folder.
    Put your folder path in this variable and all exe inside this folder , you can access via run or anywhere from command prompt .
  • rahul69
    rahul69
    Koushal Patel
    I have a simpler solution to open file at folder location at D:\Folder A\Folder B\Folder C\Folder D by creating create batch file... Batch file experts kindly let me know in case of any amendments possible in below approach. πŸ˜€πŸ˜€

    Here we go!!
    1. Open a notepad and write below command there. Path to the file is in bold fonts.

    #-Link-Snipped-# off
    start explorer D:\FolderA\FolderB\FolderC\MyFile.xls


    2. Go to File>> Save As
    3. Save the file with .bat extension (.bat stands for batch file). Let the file name is MyFile.bat
    4. Save this file in C Drive or any Drive's main location. Let I save the file in C Drive

    5. Now, when you want to open file, just go through Start >> Run
    6. Type C:\MyFile.bat and press Enter key..
    Your file will be opened. πŸ˜€πŸ˜€
    In the similar manner, we can open any folder or file which is present in nested folders. Actuality I find this approach handy since I need to open number of files in day to day activities. Hope, everyone finds it helpful.

    Again I request the batch file experts, let me know if you guys have any better approach!! Thanks. πŸ˜€
    An easy approach will be to put all the shortcuts you need inside a folder in a desktop.
    And then open it and click on respective shortcut as per need. πŸ˜€

    Anoop Kumar
    It's in path of environment variable . See for system32 folder.
    Put your folder path in this variable and all exe inside this folder , you can access via run or anywhere from command prompt .
    That's correct. Although another way would be to modify environment variable path itself, then we don't need to change the location of our exe. 😁
  • Koushal Patel
    Koushal Patel
    rahul69
    An easy approach will be to put all the shortcuts you need inside a folder in a desktop.
    And then open it and click on respective shortcut as per need. πŸ˜€


    That's correct. Although another way would be to modify environment variable path itself, then we don't need to change the location of our exe. 😁
    Can you please elaborate the second part for me (modify environment variable path itself).. Thanks in advance!!
  • Abhishek Rawal
    Abhishek Rawal
    Anoop Kumar
    I wish is there any add-on available for Linux too.
    We have Desktop search (what Mac guys call 'Global search') & Semantic desktop called Baloo (former Nepomuk), for like half decade or even more!!

    Here's few screenshots below just to get you hint. I will write laterin detail about power of KDE's Desktop search. So, for now just look images below & try to get hint.

    snapshot21
    (In above image check tags option on right information tab, I have chosen ce as example)

    snapshot26
    snapshot22
    Similarly do same with other of your files -->
    snapshot23
    Now global search for the file whose name 'you know' !! For example we are taking 'knlinfo'
    snapshot24
    Search using single shortkey!
    snapshot25

    i hardly remember going into folder a then b then C to D. Semantic desktop is superdope feature.
    And yes, Apple didn't invented Global search ffs.
  • rahul69
    rahul69
    Koushal Patel
    Can you please elaborate the second part for me (modify environment variable path itself).. Thanks in advance!!
    Sure:
    1. Click on start button.
    2. Right click on Computer, then go to properties, A window will open.
    3. In left hand pane, click on Advanced System Settings,system properties will open.
    4. Go to Advanced tab and select Environment Variables...
    5. Here in System variables, select Path and click edit.
    6. In variable value line, go to end of line, put a ;(semicolon) followed by path of your exe
    7. Eg /windows/system32;D:\myfolder if your exe is in myfolder in D drive.
    8. Click OK.
    Voila, now u can open your exe from start>run.
    These instructions are for Windows 7, for other OS (eg XP ). U may open settings from
    Control Panel->System and security->System (instead of step 1-3)
    Hope it helps,
    Good luck & enjoy πŸ˜€
  • Koushal Patel
    Koushal Patel
    rahul69
    Sure:
    1. Click on start button.
    2. Right click on Computer, then go to properties, A window will open.
    3. In left hand pane, click on Advanced System Settings,system properties will open.
    4. Go to Advanced tab and select Environment Variables...
    5. Here in System variables, select Path and click edit.
    6. In variable value line, go to end of line, put a ;(semicolon) followed by path of your exe
    7. Eg /windows/system32;D:\myfolder if your exe is in myfolder in D drive.
    8. Click OK.
    Voila, now u can open your exe from start>run.
    These instructions are for Windows 7, for other OS (eg XP ). U may open settings from
    Control Panel->System and security->System (instead of step 1-3)
    Hope it helps,
    Good luck & enjoy πŸ˜€
    Thank you Boss!!! πŸ˜€πŸ˜€
  • rahul69
    rahul69
    Koushal Patel
    Thank you Boss!!! πŸ˜€πŸ˜€
    Ur Welcome πŸ˜€
  • Anoop Kumar
    Anoop Kumar
    rahul69
    Sure:
    1. Click on start button.
    2. Right click on Computer, then go to properties, A window will open.
    3. In left hand pane, click on Advanced System Settings,system properties will open.
    4. Go to Advanced tab and select Environment Variables...
    5. Here in System variables, select Path and click edit.
    6. In variable value line, go to end of line, put a ;(semicolon) followed by path of your exe
    7. Eg /windows/system32;D:\myfolder if your exe is in myfolder in D drive.
    8. Click OK.
    Voila, now u can open your exe from start>run.
    These instructions are for Windows 7, for other OS (eg XP ). U may open settings from
    Control Panel->System and security->System (instead of step 1-3)
    Hope it helps,
    Good luck & enjoy πŸ˜€
    Looks like I wrote it too concise πŸ‘€.
    Anyway nice explanationπŸ‘.

    One more tweak.
    You can directly drag n drop any folder location in favorites (Left side of windows explorer -> Top section (Favorites)).
    Sometimes mapped network drive doesn't work and in this case favorite links works like charm.
  • Mohamed Shameem
    Mohamed Shameem
    Very nice and thanks

You are reading an archived discussion.

Related Posts

Heyy guys..I'm a TE extc student and I have to make a mini project using Pic microcontroller or else using any other microcontroller except 8051. So could you guys suggest...
Apple Inc. has been recently launching some great products and has also been bringing about some really cool updates. One recent change that Apple has introduced now is that it...
Neurons in nervous system communicate through synapses (a structure that allows neuron to transmit electrical or chemical signal to another neuron). This type of communication is called synaptic transmission or...
sir/madam please help me in selecting mini project for my semester i am so confused how to do and all the stuff.. it should be done by using microcontroller example...
Though biometrics is believed to be one of the safest form of security, the current reports will make you believe that it isn't that difficult to break. A German hacker...