|
-
Jan 16th, 2002, 05:37 PM
#1
Thread Starter
Fanatic Member
Create Shortcut
Does anyone know how to copy a file to another place? As well as how to create a shortcut in a specific path?
Thanks

prog_tom
JOIN THE REVOLUTION!!!! Dual T3 backedup science community.
http://physics.sviesoft.com/forum
-
Jan 16th, 2002, 06:34 PM
#2
Fanatic Member
You can use the system() function which is like typing at a DOS prompt.
Code:
#include <cstdlib>
using namespace std;
// ...
sprintf(szCmd, "copy %s %s", szSrc, szDest);
system(szCmd);
Alcohol & calculus don't mix.
Never drink & derive.
-
Jan 16th, 2002, 06:42 PM
#3
Thread Starter
Fanatic Member
Example?
Can you give me an example?
Also do you know how to create a shortcut?

prog_tom
JOIN THE REVOLUTION!!!! Dual T3 backedup science community.
http://physics.sviesoft.com/forum
-
Jan 17th, 2002, 09:58 AM
#4
For API there's the CopyFile function. I coudn't find a function to create a link to a file.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|