C Sharp :: Copy Files From Local Computer To Online Server

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


ADVERTISEMENT

C Sharp :: Coding For Quantities In Online Shopping Carts?

Jan 11, 2013

I am trying to create an on-line product store. I'm having trouble with setting up the code to correctly acknowledge quantity desired per product item in the shopping cart at check-out. I want to be able to capture multiple impressions/hits/clicks per item and increase the # in the quantity box each time someone clicks on the same item. For example, if product A is clicked 3 times, then the quantity in the shopping cart should show "3". If it's clicked 5 times, it should show "5" and so on ... However, right now, it's showing the product multiple times in the shopping cart with a quantity of "1" for each time the item was clicked. How can I correct this?

View 2 Replies View Related

C/C++ :: Synchronize 2 Database On Live Server And Local Desktop

Aug 8, 2012

I have 2 database. One is on live server and the other on local desktop.

User can make changes in database offline on local desktop.

But later he wants to move his changes to live server and also get the updates done on live server by other users. How can this be accomplished? What algorithm can be applied?

View 3 Replies View Related

C++ ::  Reading Files Saved On Computer

Jul 20, 2014

I can't seem to get my program to read a file that's saved on my computer. Here's my code:

#include <iostream>
#include <fstream>
#include <string>
using namespace std;
int main() {
ifstream inputfile;
string name;

[Code] ....

View 6 Replies View Related

C/C++ :: Saving Sequential Files To Computer?

Feb 2, 2015

[size="5"][size="4"]

I am programming in C and am having some trouble finding the .txt file I saved after having run my program. It is likely a stupid error on my behalf. However, it is causing me quite a bit of grief at the moment. I attached my source code below  
abgcchp27ex1.txt (2.01K)

I coded my structure within my header file(bookInfo.h) correct along with everything else. My dilemma is a matter of my file location and whether it actually saved.

/* This program takes the book info program from chapter 27 and writes the info to a file named bookinfo.txt. */

// First include the file with the structure definition

#include "bookInfo.h"
#include
#include
FILE * fptr;

[Code]....

View 3 Replies View Related

C++ :: Use Excel And Word Files With Computer That Doesn't Have Both?

Mar 12, 2014

I have to develop an application that uses Qt, Excel and live-time file checking. My client gave me this:

I have a problem at work. I need you to develop this: I want one application with GUI (it said windows), that generates an report for each sheet (employee name) in the file, with the columns. I don't want to make the computer slower, so check the file and get the name of the employee that is altered and only change his report

How to start it. All Excel libraries I use stop working on my computer and this "File Checking" is other trouble, because if for each second I compare the size of the "old" file with "new" file, the memory will explode.

View 5 Replies View Related

C/C++ :: Putting Computer Info Into CSV File - Batch Files

Dec 8, 2014

I am trying to use a combination of windows batch scripts as well a C++ program to put users data into one single .CSV file. Right now, I have a batch file that will output data from the command line into multiple .txt files. These files are mac.txt, serialnumber.txt, computermodel.txt, and computer name.txt. What I want to do, is to have users run the batch file, which will in turn run the .exe C++ file which will concatenate all their data into one file, computerinfo.csv. The file format for this file would be to have the mac address, serialnumber, computer model, and computer name all in their own column.

My main issue is that these individual files don't have the format that I would like, but based on the command prompt functions, there isn't really any good format. For example, the mac.txt file has the following format:

Physical Address Transport Name
=================== ==========================================================
xx-xx-xx-xx-xx-xx DeviceTcpip_{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}
yy-yy-yy-yy-yy-yy Media disconnected
zz-zz-zz-zz-zz-zz Media disconnected

but all I really want is xx-xx-xx-xx-xx-xx

The other files have other issues with format, but if I can figure out this one then the others should be a piece of cake.

Also, I want the output of this to all go in one row, and as other users run this file, they will go into new rows without touching the rows above.

View 1 Replies View Related

C/C++ :: How To Access Files Of A Computer Through Batch Operating Codes

Oct 21, 2013

How to use c programming codes or batch operating codes to access files from our computer.

View 1 Replies View Related

C Sharp :: How To Print Two Or More Printers Simultaneously In One Computer

Jan 18, 2014

I have two or more printers and one computer. I want to print to both printers the same document at the same time... Thus when I press print on my document both printers will print the file simultaneously.

View 6 Replies View Related

C Sharp :: Compare Date In Registry With Local Time?

Feb 2, 2013

The first time my application opens up, it should get the local date out of the System and store this in a registry key. But the second time it should get the date stored in that registryKey and compare it to the date right now.And there is where I am stuck, I just don't know how to get the date out of that key and compare it to the date right now.

This is my code:

RegistryKey key1;  
        private void btnTrial_Click(object sender, EventArgs e) {
            DateTime current = DateTime.Now;  
            key1 = Registry.CurrentUser.OpenSubKey("myKey");    
            if (key1 == null)

[code]....

at the last "if" statement it should compare the date stored in the key with the DateTime.Now.

View 9 Replies View Related

C++ :: Retrieve Data / Files From A Server?

Feb 25, 2013

I was wondering if i had to say simply retrieve data from a server whether it be simple plain text for variables or download whole files (FTP), what would be the best method for this? I would imagine there is a pretty big difference between retrieving text and downloading files but im just wondering what the best thing would be to research for both.

View 3 Replies View Related

C Sharp :: How To Add Local Database In Install Shield Limited Edition

Nov 26, 2014

I have small Project In Vs 2013.i have to deploy it.but i did through Installshield. Project is working same PC but when i try to deploy another PC i cannot loin in to my project.it seems to me that i didn't add database .

View 2 Replies View Related

C Sharp :: Centralize Database On The System On Local Area Network?

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

C++ :: Search And Copy Files

Jan 28, 2013

I want to search a special folder (and SubFolders) for Sh files (*.sh) then copy them (if found) to specified directory in Dev-C++ ,so that i need two function:

1-Search in specified directory for special FileType (*.sh)
2-Copy given file to specified directory .

In linux/bash Scripting you can do this easily but i should do this in Dev-C++

View 1 Replies View Related

C :: Best Way To Copy Paste A String Between Two Files

Jun 4, 2013

I have one tab seperated file and i whish to change values in one column and then copy the entire row (including the changed value) into anothe file.

file :

Code:
x y z sdfsdgnsdfgndfjgndfbsgdf
x y z dkjfgdsbfvgsdfvg
x y z ksdnfsdfbsdnfsdvjsdbvjsdjfnsdbfubsdfjsdbfuibsdfsdfujbsduf

the way i am doing it right now:

Code:
while (fgets(line, sizeof line, list) != NULL){
result = sscanf(line, "%ld %ld %d %10000s", &one,& two, &three,string);
if (results == 4){
// change three
//print: one two three string
}
}

the problem is that the string in the file is of variable size and sometimes it is bigger then my char string[10001] array which then i need to resize and it gets messy. Is there a way to somehow , once identified first three numbers (and modified) just to read the rest on a character base and the print it character by character into a new file so that i can avoid string array completly.

View 1 Replies View Related

C Sharp :: Could Not Open Connection To SQL Server

Feb 19, 2013

I'm getting this error.

SQLite error
near "16": syntax error

On the code:

private void btnUpdate_Click(object sender, EventArgs e)
{
for (int i = 0; i < dataGridView1.Rows.Count; i++)
{

[Code]....

With breapoints etc it does show the values it has to insert into my database. But it just doesn't and gives me the Near "16" syntax error.

View 50 Replies View Related

C Sharp :: Browse Database Name And Server To Connect?

Apr 3, 2013

How can i browse database name and server to connect?

View 3 Replies View Related

C Sharp :: Submit Button (to SQL Server DB) Not Working

Nov 26, 2013

I have a submit button, where users are clicking after entering text into textboxes and (hopefully) check boxes (for yes/no).

Here is my code, and when I run it and press submit, there is no action. It just continues to loo.

 string ConnectionString = @"Data Source=.SQLEXPRESS;
AttachDbFilename=|DataDirectory|ASPNETDB.MDF;Integrated Security=True;User Instance=True";  
            using (SqlConnection dataConnection = new SqlConnection(ConnectionString))  {
                using (SqlCommand dataCommand = dataConnection.CreateCommand())

[Code] .....

Note: I took out the Checkboxes in the code to hopefully get a successful run, to no avail.

View 3 Replies View Related

C Sharp :: Socket Server Memory Keeps On Increasing

Apr 23, 2012

We have socket server which is developed in c# .net 3.5.

I see server memory keep on increasing whenver client disconnectes and connects.The server disconnects client if client didn;t send valid credentials.

When client is trying to connect with invalid credentials the memory is keep on increasing.

Here is the code that handles disconnection.

try {  
                            if (state.workSocket != null)  {
                                log.DebugFormat("ssl socket displose,{0},{1}", Doomed, IP);
                                state.workSocket.Shutdown(SocketShutdown.Both);
                                state.workSocket.Close(1);
                                state.workSocket = null;
                                log.DebugFormat("ssl socket displose complete,{0},{1}", Doomed, IP);
                    
[Code] ....

View 7 Replies View Related

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 View Related

C Sharp :: Saving Data In SQL Server Parameter Error Showing

Jun 1, 2013

I have an application with general customer detail.

It has TextBox and radio button.

First I have used if statement then code but on first step is working fine then error is showing.

try
{
if (textBox1.Text == "")
{

[Code].....

View 5 Replies View Related

C Sharp :: SQL Server Connection String To Connect Through Domain Name (internet)

Sep 20, 2012

I have tried to connect my sql server 2005 using a domain name. i have bought a domain name and a dns client. this is my connection string

{ SqlConnection sqlconn = 
 new SqlConnection("user id=user1;" + "password=pass2;"
  + "server=www.mysite.infoServerInstance;" 
+ "trusted_Connection=false;" + "network 
library=DBMSSOCN;" + "Integrated security=false;" 
+ "initial catalog=Mydatabase;" +"connection timeout=5
;"); }

I have added sql browser & sql server in fire wall, and also enabled tcp port 1433 and udp port 1434. the above connection string works perfect when i run it in the server machine, but whenIi try to run it on other machines I am getting an error that server is not available or cannot find the specified server.. I desperately need to access my database through an url. ie., through internet..

View 6 Replies View Related

C Sharp :: How To Display Multiple Images From SQL Server 2005 Into C# At Runtime

Mar 26, 2013

I stored multiple images in MySQL SERVER 2005. Now I want to retrieve particular category of images into multiple picturebox at runtime in C# Windows application. i used the following code in my final result form at form_Load using c# windows apps.. But it displays only one picture at run time.

SqlConnection con = new SqlConnection(@"Data Source=ttt-PC;Initial Catalog=Query_Image;Integrated Security=True");
SqlCommand cmdnew = new SqlCommand("select pic from Image_Category 
where IMG_Cat='" + searchvalue.ToString() + "'", con);
con.Open();

[Code] ....

View 2 Replies View Related

C Sharp :: Generating Mail Using Code After Uploading Website On Server?

Nov 22, 2014

I am using below code to generate mail through C # code

SmtpClient smtp = new SmtpClient("smtp.live.com", 587);
smtp.EnableSsl = true;
smtp.UseDefaultCredentials = false;
smtp.Credentials = new NetworkCredential("XYZ@live.com", "********");

[code] .....

It was working properly offline when i running on my local computer,But I uploading it on server after publishing website it is not working.

View 1 Replies View Related

C Sharp :: Upload Excel File With Value Save In Database On Server?

Feb 27, 2013

how i upload excel file with value Save in database on server without show error.

Actually i have code who work correct on local host but not work on server then show error who write down Below

Microsoft.ACE.OLEDB.12.0 is not registered local machine.

View 5 Replies View Related

C Sharp :: Server Sending Data Then Client Receive And Store In Database Table In Windows Service

Dec 22, 2014

When server send data then client receive that data, in C# windows services where data receive continuously (Using IP Address and port number) . This below code writing in console application . i want implement same logic in windows service side. but i want data receive continuously.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

[Code]....

Above code write in console application, same logic implementing in windows service, but i want data receiving continuously

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved