Related:
- Copy file from one directory to dif directory
- Windows 10 iso file download 64-bit - Download - Windows
- Kmspico zip file download - Download - Other
- How to change download directory opera gx - Guide
- Vlc android add network directory - Guide
- Remove directory linux - Guide
3 responses
closeup22
Posts
8923
Registration date
Friday May 15, 2009
Status
Member
Last seen
October 7, 2010
2,099
Jun 20, 2009 at 12:02 PM
Jun 20, 2009 at 12:02 PM
You just have to right click on the file you want to move, select copy or cut
Then right click on the destination you want and select paste!
Then right click on the destination you want and select paste!
your batch file should reside in the log directory (source directory) and say
move cpqsetup.log c:\myfolder
This will actually move the file to the location. If you want 2 copies, one in the original location and another in the one you specified replace move with copy.
move cpqsetup.log c:\myfolder
This will actually move the file to the location. If you want 2 copies, one in the original location and another in the one you specified replace move with copy.
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
void main(int arg,char *arr[])
{
FILE *fs,*ft;
char ch;
clrscr();
if(arg!=3)
{
printf("Argument Missing ! Press key to exit.");
getch();
exit(0);
}
fs = fopen(arr[1],"r");
if(fs==NULL)
{
printf("Cannot open source file ! Press key to exit.");
getch();
exit(0);
}
ft = fopen(arr[2],"w");
if(ft==NULL)
{
printf("Cannot copy file ! Press key to exit.");
fclose(fs);
getch();
exit(0);
}
while(1)
{
ch = getc(fs);
if(ch==EOF)
{
break;
}
else
putc(ch,ft);
}
printf("File copied succesfully!");
fclose(fs);
fclose(ft);
}
#include<conio.h>
#include<stdlib.h>
void main(int arg,char *arr[])
{
FILE *fs,*ft;
char ch;
clrscr();
if(arg!=3)
{
printf("Argument Missing ! Press key to exit.");
getch();
exit(0);
}
fs = fopen(arr[1],"r");
if(fs==NULL)
{
printf("Cannot open source file ! Press key to exit.");
getch();
exit(0);
}
ft = fopen(arr[2],"w");
if(ft==NULL)
{
printf("Cannot copy file ! Press key to exit.");
fclose(fs);
getch();
exit(0);
}
while(1)
{
ch = getc(fs);
if(ch==EOF)
{
break;
}
else
putc(ch,ft);
}
printf("File copied succesfully!");
fclose(fs);
fclose(ft);
}