Solved

Open Dir and rename directory

Posted on 2002-03-12
4
775 Views
Last Modified: 2007-11-27
Hey all, I’m looking for some code that I can run as a VB script or VB application to open a directory E.g. C:\windows>adnew, Copy a file to this Dir (C:\windows>adnew) and then Rename the Directory.
I don’t know much about VB so any help will do.

0
Comment
Question by:dagga007
[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
4 Comments
 
LVL 45

Accepted Solution

by:
aikimark earned 50 total points
ID: 6857078
You will need two VB statements:
Filecopy
Name

Use the VB online help to see syntax and examples.

There is no need to "open a directory".
0
 
LVL 6

Expert Comment

by:ebosscher
ID: 6858014
Here's a link to the FileSystemObject.  I know there are probably VB intrensic objects to do that type of stuff, but I find working with FSO to be the easiest way to deal with files and directories

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/fsooriscriptingrun-timereference.asp


Hope that helps
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 7618231
Hi dagga007,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will ask a Community Support Moderator to:

    Accept aikimark's comment(s) as an answer.

dagga007, if you think your question was not answered at all or if you need help, just post a new comment here; Community Support will help you.  DO NOT accept this comment as an answer.

EXPERTS: If you disagree with that recommendation, please post an explanatory comment.
==========
DanRollins -- EE database cleanup volunteer
0
 
LVL 1

Expert Comment

by:kodiakbear
ID: 7665643
Moving to the paq

kb
Experts Exchange Moderator
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

705 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