Solved

Open Dir and rename directory

Posted on 2002-03-12
4
753 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
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

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

You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
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.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

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

24 Experts available now in Live!

Get 1:1 Help Now