.NET Logo
Welcome Guest Search | Active Topics | Members | Log In | Register

เรื่องด่วนอยากได้คนช่วย Options · View
mocking1
Posted: Thursday, June 26, 2008 2:57:22 PM
Rank: มือสมัครเล่น
Groups: Member

Joined: 6/26/2008
Posts: 16
Location: thailand

เรื่องแรกเลย ผมมี โปรแกรมตัวนึง ถูกเขียนด้วย programmer คนนึง แต่เค้าไม่ได้ให้ code ผมไว้ แต่ผมอยากจะให้ file exe ที่ใช้รัน โปรแกรม เป็น นามสกุลอื่น โดยที่ผมจะเขียนอีกโปรแกรมขึ้นมาเพื่อมาเรียก File exe นี้ แต่ File exe จะต้องเป็นนามสกุลอื่นที่ไม่ใช่ exe จะสามารถทำได้ไหม

ball
Posted: Sunday, June 29, 2008 10:29:34 PM

Rank: อาจารย์
Groups: Administration

Joined: 12/1/2007
Posts: 473
Location: Bangkok

คุณลองไปศึกษาการใช้งานคลาส System.Diagnostics.Process ตัวอย่างนะ

using System.Diagnostics;

 

Process process = new Process();           
process.StartInfo.FileName = "notepad.exe";    
process.Start();

แต่เรื่องที่เปลี่ยนนามสกุลไฟล์นั้น ไม่แน่ใจ อาจจะทำไม่ได้ ถ้าได้ก็ได้แต่นามสกุล .com แทนนะ



Imagination is more Important than Knowledge... /A.Einstein
mocking1
Posted: Tuesday, July 01, 2008 10:10:35 AM
Rank: มือสมัครเล่น
Groups: Member

Joined: 6/26/2008
Posts: 16
Location: thailand

ขอบคุณมากครับ ที่แนะนำ

Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

YAFVision Theme Created by Jaben Cargman (Tiny Gecko)
Powered by Yet Another Forum.net version 1.9.1.8 (NET v2.0) - 3/29/2008
Copyright © 2003-2008 Yet Another Forum.net. All rights reserved.


Sponsored by