Need Refresh command

Discussion in 'Scripting' started by Kamrul08, Oct 31, 2014.

  1. Kamrul08

    Kamrul08 MDL Member

    Dec 28, 2013
    104
    13
    10
    I need refresh command. I tried tskill explorer but it restarts explorer.
    http://forums.mydigitallife.net/attachment.php?attachmentid=31963&stc=1
     

    Attached Files:

  2. MrMagic

    MrMagic MDL Guru

    Feb 13, 2012
    6,015
    4,148
    210
    F5
    _____________
     
  3. Kamrul08

    Kamrul08 MDL Member

    Dec 28, 2013
    104
    13
    10
    I need dos command.
     
  4. hasomaso

    hasomaso MDL Novice

    Aug 3, 2012
    28
    3
    0
    that interest me also
     
  5. EFA11

    EFA11 Avatar Guru

    Oct 7, 2010
    8,719
    6,741
    270
    #5 EFA11, Nov 6, 2014
    Last edited by a moderator: Apr 20, 2017
    so you do not want explorer to start again?

    in a batch this will restart explorer.
    Code:
    taskkill  /f /im explorer.exe
    explorer.exe
    in a batch this will not restart explorer.
    Code:
    taskkill  /f /im explorer.exe
    Win8.1 approved lol
     
  6. Kamrul08

    Kamrul08 MDL Member

    Dec 28, 2013
    104
    13
    10
    #6 Kamrul08, Nov 8, 2014
    Last edited by a moderator: Apr 20, 2017
    (OP)
    I know these commands. I want Explorer won't close or restart like right click Refresh. I need only refresh command. I searched it very much. But final solution is - dos has no refresh command. vbs can be used and it works fine. If this vbs code could be used in batch it would be great.

    Set WSHShell = CreateObject("WScript.Shell")
    WshShell.SendKeys "{F5}"
     
  7. s1ave77

    s1ave77 Has left at his own request

    Aug 15, 2012
    16,104
    24,378
    340
    #7 s1ave77, Nov 8, 2014
    Last edited by a moderator: Apr 20, 2017
    Code:
    @echo off
    set file=%temp%\refresh.vbs
    echo Set WSHShell = CreateObject^("WScript.Shell"^)>%file%
    echo WshShell.SendKeys "{F5}">>%file%
    %file%
    if exist %file% del /s /q %file% >nul
    
    
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. EFA11

    EFA11 Avatar Guru

    Oct 7, 2010
    8,719
    6,741
    270
    guess I was confused lol, nice save s1ave :biggrin:
     
  9. Kamrul08

    Kamrul08 MDL Member

    Dec 28, 2013
    104
    13
    10
    #9 Kamrul08, Nov 9, 2014
    Last edited by a moderator: Apr 20, 2017
    (OP)
    It's not working. It may work in xp. I'm in Win8.1. I also tried to call the vbs file with wscript "full path of .vbs file" and cscript "full path of .vbs file"