Solved

Rename and move a file

Posted on 2007-04-11
3
164 Views
Last Modified: 2010-04-23
I have an application that about 50 people are executing on their PC.   When the user saves in thier application, I need to update information in another application supported by a 3rd party.     To do this, they (the 3rd party) want me to write a file to a common drive on our server so they can pick it up and update their information.    My application doesn't provide a way for me to make the file name unique, so I need some type of executable I can run to move it from the user's harddrive to the server.    does that make sense?  
0
Comment
Question by:ksconn2
[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
  • 2
3 Comments
 
LVL 27

Accepted Solution

by:
VBRocks earned 50 total points
ID: 18890702
Here's how you do it in VB.NET:

my.Computer.FileSystem.MoveFile(sourceFile, destinationFile)

0
 
LVL 27

Expert Comment

by:VBRocks
ID: 18890730
Here's VB6:

        Dim fso As Object
        Set fso = CreateObject("Scripting.FileSystemObject")
        fso.MoveFile "sourceFile", "destinationFile"

0

Featured Post

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

615 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