Solved

Refresh Directory from a Batch File

Posted on 2004-04-15
4
421 Views
Last Modified: 2008-03-06
Hi,

I was wondering if it was possible to refresh a directory from a batch file, in Windows 2000?
Like pressing the F5 key, but I want to code it from a batch file for the current directory or the
directory of my choice.

Cheers

Cam
 
 
0
Comment
Question by:forrie13
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 5

Expert Comment

by:drnick
ID: 10839384
... at least if you write a small proggy simulating f5, like with then keybd_event function, and then call it from your bat.
easiest way i can imagine and only one too.
regards
0
 

Author Comment

by:forrie13
ID: 10839396
keybd_event function? can that be done from the batch file?
0
 
LVL 5

Expert Comment

by:drnick
ID: 10839406
no, you'll need to write a small program, let's say with visual c or such.
that you can call then from your batch file
0
 
LVL 5

Accepted Solution

by:
drnick earned 290 total points
ID: 10839410
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/WinUI/WindowsUserInterface/UserInput/KeyboardInput/KeyboardInputReference/KeyboardInputFunctions/keybd_event.asp

from outside the batch you'll never notice that a small program ran,
and you really don't have to do much in programming
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
A short article about problems I had with the new location API and permissions in Marshmallow
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

627 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question