16,014,650 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by burgo855 (Top 12 by date)
burgo855
23-Jan-14 22:37pm
View
Yeah, i'm not worried about the format, i can sort that out. The issue is its not grabbing the "+myname" from the html input, instead it just displays the +myname.
So i figure their must be a way to read the input answers and display them in a file which is downloadable?
burgo855
18-Jul-12 23:15pm
View
Cheers.
burgo855
18-Jul-12 23:10pm
View
what string should i replace it with? Thanks.
burgo855
18-Jul-12 22:53pm
View
Is their a way to use this in every line of code? im using this:
if (File.Exists(@"C:\PROGRA~1\test\file.txt"))
File.Delete(@"C:\PROGRA~1\test\file.txt");
File.Copy(@"C:\PROGRA~1\new\file.txt", @"C:\PROGRA~1\test\file.txt");
is their a way to use the formula in my first post in the formula above?
burgo855
17-Jul-12 21:14pm
View
If they keep the original files in the same location even with a new name they will experience fps lag. I know this because i have already tried it...
If i place the files in recycle bin it will just eventually fill their bin making the program a hindrance as they have to empty recycle bin.
Besides i have the exact same files they will use so they can patch to and from each version.
burgo855
17-Jul-12 21:11pm
View
This is for an older game....
And their are 2 different versions. Players have to download and install patches manually and reinstall all the time which is time consuming... This program i am making has the patch files.
So i cant really check for updates etc because their will never be anymore updates....
Does anyone know how i can browse for the install folder and then somehow use echo or something to echo the messagebox1 path?
burgo855
15-Jul-12 23:12pm
View
Deleted
[code]
private static void CopyFilesRecursively(String SourcePath, String DestinationPath)
{
// First create all of the directories
foreach (string dirPath in Directory.GetDirectories(SourcePath, "*", SearchOption.AllDirectories))
Directory.CreateDirectory(dirPath.Replace(SourcePath, DestinationPath));
// Copy all the files
foreach (string newPath in Directory.GetFiles(SourcePath, "*.*", SearchOption.AllDirectories))
File.Copy(newPath, newPath.Replace(SourcePath, DestinationPath));
}
[/code]
This works but it says a file in the directory already exists... But i made it so if the folder exists it is deleted before i copy the new folder
burgo855
15-Jul-12 22:12pm
View
i thought that file.move only worked for a file?
i was looking at using File.Copy(sourcename, destname); But i dont think that will work? If their is an error in moving the file such as user permissions what would happen?
The files and subdirectories will already exist as i wold like to update them. I was hoping their is a way to move all of the files and subdirectories at once... And some files i would like to keep in the original folder which i will not be moving from the New folder.
burgo855
12-Jul-12 5:08am
View
Yes, i run the debugger as an administrator.
I am not writing anyhting i am moving an embeeded resource on the debug to program files. The files i am moving are updated files. The old files do not even exist anymore and i wanted to make a program that updated a folder of mine as otherwise i have to manually do it all the time. I am also going to use this on my other 3 computers. However, even if ran as an admin it wont even place the file on my desktop?
Here is the error:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.UnauthorizedAccessException: Access to the path 'C:\Users\NAME\Desktop' is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode)
at test.Form1.SaveResource(String resourceName, String fileName) in C:\Users\NAME\documents\visual studio 2010\Projects\test\test\Form1.cs:line 180
at test.Form1.button4_Click(Object sender, EventArgs e) in C:\Users\NAME\documents\visual studio 2010\Projects\test\test\Form1.cs:line 196
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.269 (RTMGDR.030319-2600)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
test
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Users/NAME/Documents/Visual%20Studio%202010/Projects/test/test/bin/Debug/test.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.278 built by: RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.282 built by: RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.269 built by: RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
For example:
<configuration>
<system.windows.forms jitdebugging="true">
When JIT debugging is enabled, any unhandled exception
will be sent to the
burgo855
11-Jul-12 7:50am
View
Is their any reason why it doesnt let me move the file to any locations? It wont let me do it even if i run it as an admin :/
Says something along the lines of no permissions....
im trying to place it in program files where the game is but as i sai it doesnt even work for desktop:/
burgo855
10-Jul-12 7:53am
View
Cheers. i haven't tried it but this would make sense. It would be a streaming app because its embedded so i'm going to have to Thank you for it mate really appreciate your help and all.
burgo855
10-Jul-12 7:42am
View
Thanks...
This is going to irritate you, for that i am sorry:( I am making a C# forms app not a consoleapp..
Would the above still work?
Could you use the above snippet as an example for button 1? I will happily Accept your answer if i can understand it a bit better and make it work XD
Show More