Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Refresh Directory from a Batch File

Posted on 2004-04-15
4
Medium Priority
?
443 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 1160 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

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

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

Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
What do responsible coders do? They don't take detrimental shortcuts. They do take reasonable security precautions, create important automation, implement sufficient logging, fix things they break, and care about users.
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…
Introduction to Processes

926 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