Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Copying file from resource (C#)
Name: El-Trucha Date: April 4, 2005 at 09:33:40 Pacific OS: Windows XP SP2 CPU/Ram: 2.8 GHz/448 MB
Comment:
Hello every1!! :D My question's simple, how do I copy a file that I embedded in my program with the /res: parameter in csc.exe?? I want to copy this file to the hard drive, the file is a JPG image file... How?? Thanx!! ;)
Name: wizard-fred Date: April 5, 2005 at 00:58:31 Pacific
Reply:
If the image is embedded and at the end, then you will have to find the beginning of the image and then read to the end of the file and copy to the save file. If the file is in the middle then you will have to decode the image header to find the size of the image.
0
Response Number 2
Name: El-Trucha Date: April 8, 2005 at 12:42:54 Pacific
Reply:
Uhh...I don't understand what you're talkin about...I'm embedding the file with the /res: parameter...and you're saying that I have to put the imabge at the end of my program...can I do this from CSC.EXE?? this program's code is automatically generated, and then compiled with the image embedded in it... What can I do?? Thanx!! ;)
Name: wizard-fred Date: April 8, 2005 at 13:52:45 Pacific
Reply:
Sorry, I misunderstood your question. I thought you wanted to extract an embedded image. I don't know where it goes or what is done when it is used as a resource for CSC.
0
Response Number 4
Name: El-Trucha Date: April 9, 2005 at 19:00:49 Pacific
Summary: Does anyone know how to copy files from multiple subfolders (under the same parent folder) to another directory using DOS commands? For example, if I wanted to copy all text files named *test.txt...
Summary: I am looking for help with a script that will copy files from a folder on a share on the server to a folder on many workstations. The script needs to get the computer names from a .txt file that will...
Summary: I am trying to write a DOS (Windows command shell) script that copies files from one folder hive (several folders on DriveA) to another (several folders on DriveB). Discovering the files in the "from...