Looking for any way to transfer file from PPC to PC - c#

i looking for any way to transfer file from PPC to PC - and from PC to PPC ,
i dont want to use WebService, and if i use RAPI i need that in the PC will be any program - and i dont want
(i dont want that in the PC will be any of my program)
how i can do it ?
thank's in advance

You're going to need to be more specific -- the way the question is now it's basically impossible to determine what you're after.
Do you need to transfer a file from a Windows Mobile handheld to a Windows PC? Over what type of connection (are they on the same 802.11 network) ?
You need more details or no one will be able to even attempt to help you.

So, if what I gather is correct, you want to plug a device with your app on it into a PC and then be able to push files to the PC from the device without having to install anything over on the PC. Is that correct? If so, the next question is are you insane?
It's not possible, and for very good reason. You don't see any potential security problems with being able to just plug a device into a PC and push files up to the PC without the user having to explicitly have installed something to receive that data? I could write a simple attack app that would fill up the PC's hard drive in about 5 minutes.

A vanilla version of this is to just use the Active Sync synchronization folders. If you on the device save a file to the device synch folder, then Active Sync will move it over to the PC synch folder automatically.

Related

Pull Files to Android Device do not shows on PC

I am developing an application in C # that creates and sends an SQLite database for the device. I use the Madbee library to send files to the device. It happens that the application sends the file without problems, even if we open the database on the device we see that the data is updated.
But when accessing the data of the device from the PC the file is not listed. It appears only after restarting the equipment.
I believe it is a bug or something WPD. I tried using the command "remount" adb, but was not successful.
Does anyone have an idea how I can fix this?
PC: Windows 7 Professional.
Device: Motorola Razor D3
Visual Studio 2010. +. NET Framework 4
I suspect that the problem might be with MadBee library according to your statement.
First, "adb remount" will not help anything related with the internal SDCARD. This command only works for the debug-dev-devices, on which the ADB daemon is running in root user and thus could remount system partition from ro to rw.
Second, when you say that 'the app works well when send files to devices but cannot list the files on the device', I suppose that you are referring the problem happens when you are trying to perform r/w via MadBee library. So, please make sure by executing "adb shell ls -l /path/of/your/file" command to check if the file is OK. If the file is there, it is 99% that your library does not work correctly. If the file cannot be seen by adb shell, there are many potential reasons.
P.S. If I remember correctly, ADB shell does nothing to do with the "MTP" or "SDCARD" mode.
Very easy, try another device! Can be security options!

How to send key commands to another PC in .Net?

I see a lot of examples where key strokes/commands are sent to other applications on the same PC, but I need to send key stroke commands to another PC. Is this possible? Through remote desktop or cleaner/easier way?
The goal here is that I press a key here, I need to execute that key (say it opens a program) on another PC without the need for a program installed on the client. Think about sending CTR + ALT + DEL on another PC.
Edit: we have Kinect plugged in to one of us PC's (which we intend to use as Server) and then we have many clients who will be receiving these key commands. Imagine I tell Kinect to open PowerPoint for me on some PC, since PowerPoint can be opened with a key command, I was hoping the easiest way would be to send those key commands from my Server. If this is not possible, then what are the alternative ways to do it? I am trying to avoid any application deployed on the clients, else I believe RDP could work then?
without the need for a program installed on the client
There has to be a server on the target PC to receive your commands. Since you exclude installing a program, this leaves us with the OS (I assume Windows), and afaik remote desktop.
The link below might help with this purpose (I haven't used it myself):
http://www.codeproject.com/Articles/43705/Remote-Desktop-using-C-NET
you must use a network comminication like a tcp or udp and you can use SendKeys. but there is no way to listen commands without running an application at remote pc.

FileDialog with Remoting C#

I need to develop an app in C# that is like the Restore Database at SQL Management Studio.
It's basically a FileDialog that remotely shows the files/folder on the server.
I think its pretty simple, but since I'm starting developing apps using Remote (.NET) I need some help.
Of course I'm not asking to have a ready-to-go code, I would appreciate some tutorials and how to start developing things remotely and using Windows Form.
Thanks !
Leo
That depends on the network access you're going to have to the remote machine. If you have access to the file system, all you need to do is point the regular file dialog to the right network path.
If you can't reach the remote machine's file system, you'll need to create an agent that runs on that machine and offers access to the files. You can do that, but unless you're really careful you're going to introduce a major security hole. Instead, you can just enable the regular Windows network file access.

C# windows form app that can be accessed within the network

I'm a C# noob and i want to ask if it's possible for this kind of scenario:
I have a windows form app in C#, is it possible i will only install it in 1 computer(as a server) and it can be accessible from all the computers within the network? If it's possible can you please help me what i need to do, any reference/books/tutorials?
I already googled this but i think i can't find the correct 'search word' that's why i didn't get the desired search result.
Yes it is possible. Put the C# executable in a network UNC Path, and you can access it if you create a link on the destination desktops. XP SP 2 and higher by default can run it. If it has .NET 3.0 or 3.5 or 4.0 framework you may need to install the Runtimes for those frameworks, but .NET 2.0 should be fine with XPsp2. All the frameworks are downloadable from Microsoft's site.
Is this a database driven app or just a straight up stand alone?
You don't need any books, it should work just fine. But provide as many details as you can so we can steer you in the right direction.
You may have to do a large code overhaul to do this. Could you simply install it on one computer and remote login to that computer and access it?
You see the thing about network-accessed programs is that they have two parts--a client and a server. It sounds like you just have one piece. You would need to write a program that is a windows form and install it on all the machines. You would then need to write your server code that receives the data from the client over the network.
You would need to know about socket programming. Here is a book introductory tutorial of C# and sockets.
http://www.codeproject.com/KB/IP/socketsincsharp.aspx
I'm not 100% sure what you're asking, but hopefully this covers it. If not, please edit your question to be more specific.
You can generally run a WinForms application from a shared network drive/folder by copying the executable to that drive (and making sure that all users have appropriate access to that network location).
If you use an automatic installer, it should be possible to select a network share as the place to install the software. Automatic installers tend to also put things in the local registry (e.g. create menu items for the program, which go on the local computer always). In that scenario, you would want to create an installer that creates appropriate shortcuts/menu items on the local computer that point to the pre-installed executable on the network share.
You need to take care that the windows forms application doesn't write data to the network share, or if it does, that it does so in a manner consistent with multiple users accessing that data (in other words, keep in mind that all of your users will share that location).
Put it in a shared folder and access either by UNC path or map a drive to that location. You could also map the drive for all users with group policy.
Alternatively you could wrap your app into an MSI and install it via group policy?
Hope this helps :)
You should use a layered approach to your software design. Create a website to give users access to the application from multiple locations. Then create a service layer to give the website access to the desktop functionality that you require. WCF is a good service layer as it allows consumption through HTTP.

C# Automatic deployment/execution from a usb device

is there any way that a process on my usb will be launched automatically when the usb is connected to the computer?
Is there any way to deploy a file automatically from the usb, each time the usb is connected to the computer?
thanks.
The user would have to have "auto-play" enabled and then you can setup an autorun file to accomplish this, but it is highly dependent on the users configuration.
It should be noted that this is also a huge security concern for many people. Auto-run usb sticks are one of the ways that malware is automatically distributed.
Not trying to tell you your requirements, but I would consider if there is a better way to do this.
Take a look at Autorun.
I have an old mobile-phone that emulates a cd-drive with a autorun.inf on it. That autorun started an app that let me manage my mobile (calendar, callist, sms) from the computer.
This probably only works if the user has Autorun enabled. It's the first thing I disable.

Categories

Resources