Solved

Refresh Directory from a Batch File

Posted on 2004-04-15
4
372 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
  • 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
This is about my first experience with programming Arduino.
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…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

911 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now