C Sharp :: File Copy From One System To Another?
Jan 23, 2013
I am making an application that runs on Machine1 and the purpose of the application is to copy the files from Machine1 to Machine2. It works fine but i have to share the folder of the Machine2 where i copy the files.
Is it possible without sharing.
View 1 Replies
ADVERTISEMENT
Feb 14, 2013
i can't seem to get my program to save the Set.savv file and encrypt it and decrypt it when user logs back on to there virtual file on a CD and writing it to the disk its self and closing the session
View 8 Replies
View Related
Feb 8, 2014
I have tried to use File.Copy and File.Move but non of them would work as I expected .....
View 1 Replies
View Related
Feb 10, 2015
I have a desktop application in which i want to copy files from my local computer to an online server. I have the user name and the password of the server. is there any way like
file.copy(sourcePath,destinationPath)
to copy the files where the destinationPath will be something like
"192.168.x.xx/files" ..
View 2 Replies
View Related
Aug 9, 2013
I wrote an application with wpf and c sharp. And I use ado dotnet framework to connect the database. Now the problem is I want a centralize database for the application. And I hav e installed sql server on one of the which I want to serve as server. I now want all other clients to be able to connect to the database through local area network. how will I do that?
View 2 Replies
View Related
Feb 16, 2014
How do I detect left mouse button down and up events on the 'Close' option of the system menu that appears when the mouse is clicked on the top left corner of a form?
View 1 Replies
View Related
Mar 25, 2013
I have a C# .NET Application which get data from QuickBooks via the ODBC Driver and save the result to C# data table. So, I want to transfer this data table to a mysql table on my own server. That's the code I use:
using System.IO;
using MySql.Data.MySqlClient;
//Add mysql dll on the .NET Tab in Project's references
string connStr = "DSN=QBTest;";
string myServerAddress = "192.168.0.243";
string myDataBase = "CostTest";
[Code] ....
View 2 Replies
View Related
Mar 8, 2013
Code:
#include <stdio.h>
#include <stdlib.h>
int main (int argc, char *argv[])
{
char buffer[256];
FILE * myfile;
myfile = fopen("read.txt","r");
[Code]...
I also got an error in printing wherein the data in read.txt is "Hello" newline "World" and my program prints world twice.
View 3 Replies
View Related
Aug 23, 2013
I am trying to use ini file for configuring my app.
But GetPrivateProfileString is not working.
I am using Windows 7. I tried "Wow64DisableWow64FsRedirection" also.
Not only this-ATLPath::FileExists is also not working.It gives an error code 0x80070002 which means:
"system could not find the file"
View 14 Replies
View Related
Nov 21, 2014
How to copy a .txt file
View 4 Replies
View Related
Feb 11, 2013
Here I was trying to write a program to copy one file to another.
Code:
#include <stdio.h>#include <stdlib.h>
int main(int argc, char *argv[])
{
FILE *fp , *ft;
[Code]....
So it should copy test1 to test2. Now I created test1 in gedit. I just put one character "c" in it and closed it. And I ran the program. When I check sizes of test1 and test2 , using
ls -l
command, I see that test2 has 4 bytes and test1 has 2 bytes. So something strange is happening here. I just put a single character in test1, so shouldn't it show 1 byte ? And why test2 is showing 4 bytes ? I have Win XP on my laptop. And I use Ubuntu 12 inside VirtualBox. So this is Linux environment...
View 10 Replies
View Related
Jun 12, 2013
Code:
#include<stdio.h>
void main() {
int x=0;
int y=0;
char c;
FILE* HUG;
FILE*fopen();
[Code] ....
View 10 Replies
View Related
Jun 22, 2014
I am getting an error when i try to open FILE which user must enter then program must open that file i an function and copy string from that file in other .
Error is expression (stream !=NULL)
insert Code:
#include <stdio.h>
#include <stdlib.h>
void FileCopy(char a[],char b[]);
void main() {
char a[40],b[40];
[Code] ....
View 8 Replies
View Related
Jan 14, 2013
I need to copy data from one text file to another.This is how data in file looks like:
2 -3 8 5 0
3 5 1
2 -2 3 1 7 6
5 -3 15 0 1
I succesfully managed to copy those numbers but with one mistake.The last number is written twice. My output file looks like this:
2 -3 8 5 0
3 5 1
2 -2 3 1 7 6
5 -3 15 0 1 1
This is my code:
int a;
string str;
stringstream line;
[Code]....
View 3 Replies
View Related
Apr 4, 2013
I just purchased Visual C++ 2010 Ultimate, to start my coding experience. Whenever I try to debug, it gives me this error:
The system cannot find the file specified
It can't find the .exe file, I even Googled it, and tried a few things, without any luck.
View 2 Replies
View Related
Jun 29, 2014
I can't debug anything and get an error whenever I try. Being able to release a program to run it works sometimes, but it's hit or miss. I've created a very simple program to show the problem. The error on the screen is a result of me trying to debug, but I actually received the same error when trying to release as well.
View 6 Replies
View Related
Mar 6, 2014
I have written a program that copies a file from the source and pastes it there (same location), but with a different name. The program works fine, except there is a small bug that i can't seem to fix. Here is the code:
/*
This program copies a file from the current directory and pastes it to the same directory, but with a different name. The file name form the source must include the extension as well.
*/
#include <stdio.h>
#include <conio.h>
#include <stdlib.h>
int main() {
char temp, s_file[100], d_file[100],
[Code] ....
This is the flow:
> 1) Enter the name of the file you'd like to copy (Must be from the current directory)
> A: 3.c // This depends if the file exists in the
> current directory
>
> 2) Enter the name of the destination file (The file will be copied to the same directory)
> A: 4 //The extension isn't necessary here
>
> Result: The file was copied successfully!
When I run the prg again, and this time input a file name with no extension, like this:
> Enter the name of the file you'd like to copy (Must be from the current directory)
> 3
> You did not enter a valid text. Press "?" to get help or "x" to exit.
I hit "?" and it takes me to
> 1. The file must be from the current directory)
> 2. The location mustn't be empty
Then it asks me
> Try again? (Y/N)
If i give N, it exits. BUT if I give Y, it goes, like this:
> Enter the name of the file you'd like to copy (Must be from the current directory)
> You did not enter a valid text. Press "?" to get help or "x" to exit.
You see, it doesn't give me the option to give it the file name..
View 3 Replies
View Related
Feb 8, 2014
I am trying to write a program for a library system that allow stuff to add, remove, view and delete customer. i try to use file to store data and i open the file in mode read then i store then i put the content of the file into a structure. now the problem started it is only showing me haft of the content and here is the coding.
#include <stdio.h>
# include <windows.h>
# include <stdlib.h>
#include<string.h>
#include<conio.h>
void search(int s,struct books eli[20]);
void view(int x,struct books eli[20]);
[Code] .....
View 1 Replies
View Related
Jan 13, 2014
I am trying to copy string Line BY Line from text file into array of pointers. lets say file has only two lines for example.
This is an apple.
This is another apple.
I want to copy both of these lines from file to array of pointers. Below is the code which i am trying to use for this.
Code:
#include <iostream>
#include <stdlib.h>
#include <stdio.h>
#include <fstream>
#include <string.h>
using namespace std;
int main() {
char const *filePath = "test.txt";
[Code] ....
View 14 Replies
View Related
Feb 25, 2013
Code:
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <conio.h>
#include <windows.h>
}
[code]....
I dont know how to modify the previous record that i have done in the Add Student function. i searched from different sites and got this code for modifying a record in a text file. But, i cant figure it out why its not working.
View 2 Replies
View Related
Aug 22, 2014
Which is best option to save images in database or file system, I am developing c++ server client app. I want to save the images in server using file system or database. I am confusing to choose which option?
View 5 Replies
View Related
Aug 27, 2014
I want to delete the folder from the file system, but I am getting error of access permission.
I want to change the permission of the folder so my program can delete it.
The problem I am facing on google search is I am getting results mostly for MFC code which is windows specific. However, I want to write a code in core C++ that works on all platforms like unix and windows.
View 12 Replies
View Related
Feb 14, 2012
I have been creating this program for a student registration system. For the file handling So far I can write in to a file , view all records, and search a single record. now i got the problem with updating details . my coding is as bellow ..
void file_update() {
int r;
struct student stu;
fstream stu_file;
cout <<"========Update Record======"<< endl;
stu_file.open("student.txt", ios::app );
[Code] ....
My problem is it won't update the record. it just adding a new record.
View 9 Replies
View Related
Mar 21, 2013
So I'm doing a kind of banking system. Atm I've got the user able to create an account and set the balance of it, which is written to a .txt file. However, I would like the user to be able to enter their account no. and the program to cout the account info on the screen. I will be adding more to the program later, but until I work out how to search for values in a .txt file, and print out values on that line I'm a bit stuck.
Code:
Main.cpp -
#include <iostream>
#include "create_account.h"
#include <fstream>
using namespace std;
int menuin;
int main() {
create_account creataccObj;
[Code] .....
Sample .txt file -
// Account_no - Balance //
1001 140500
1002 150600
1003 18600
View 8 Replies
View Related
Jan 2, 2013
Why do i get this error?
View 4 Replies
View Related
Feb 5, 2014
I need to find a string(&login=) from physical memory dump file.And i have to print the word or string following it.Is there any C# code for this problem?
View 3 Replies
View Related