Solved

Refresh Directory from a Batch File

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
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…
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…

743 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

11 Experts available now in Live!

Get 1:1 Help Now