473,397 Members | 2,068 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

How Can I move a file to other directories?


Giap wrote:
*I am writing a program using vc++. Now i need to move the file i
create to other place but i failed to do that. Can anyone pls give me
a hint? *

I have fix myself..hehe..
use DeleteFile() is good enuf..

--
Giap
------------------------------------------------------------------------
Posted via http://www.codecomments.com
------------------------------------------------------------------------

Nov 17 '05 #1
1 1046
"Giap" <Gi*********@mail.codecomments.com> wrote in message
news:Gi*********@mail.codecomments.com...
*I am writing a program using vc++. Now i need to move the file i
create to other place but i failed to do that. Can anyone pls give me
a hint? *

I have fix myself..hehe..
use DeleteFile() is good enuf..


Well, if you still want to move a file you can do that with MoveFile() and
MoveFileEx().

If you want your deletion to use the Recycle Bin then you can use
SHFileOperation().

Regards,
Will
Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: Apostolis K. | last post by:
I run windows XP and IIS 5.1 and the system doesn't let me to delete or move folders using FileSystemObject.DeleteFolder(path,force) or FileSystemObject.MoveFolder(origin,destination). I allow all...
6
by: Bill English | last post by:
Is there an event for when the cursor moves? Not for a form, but for the whole screen? -- I am a 14 year old C# developer, I am completely self taught, so please don't get mad if I ask a stupid...
1
by: rv | last post by:
I am developing an ASP.NET website with C#, VS 2003 and Framework 1.1. For some reason every time I execute a Directory.Move command, the next command takes 10-20 seconds to execute. Has anyone...
0
by: Giap | last post by:
I am writing a program using vc++. Now i need to move the file i create to other place but i failed to do that. Can anyone pls give me a hint? -- Giap...
1
by: jojobar | last post by:
I have noticed that the Directory.Move removes the session as soon as the next Response.Redirect is done. It also appears that .Net framework constantly monitors all the directories below the root...
2
by: Eje | last post by:
I have a webapplication on a server. One function is to build txt-files. These files should then be moved to a fixed directory on another computer in the company network. I have tried to use...
3
by: Karel | last post by:
Hello, I have a VB.NET application where I want to move directories over a network. I tried this with system.io.directory.move, but that doesn't work over different volumes. Has anyone a...
1
by: Man-wai Chang | last post by:
I have a *damaged* MyISAM stock_take_mst.frm in /var/lib/mysql/abc. And I would like to move it to /var/lib/mysql/test and experiment with it. Is there a MySQL command to detach and attach a...
2
by: Kevin D. Smith | last post by:
I would like to move files and directories to the Recycle Bin on Windows from Python. I have found some older articles describing how to do this, but they require additional packages to be...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.