Click here to Skip to main content
15,909,466 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: chdir code fails at run time Pin
Steve Pullan18-Apr-06 21:45
Steve Pullan18-Apr-06 21:45 
GeneralRe: chdir code fails at run time Pin
thandal18-Apr-06 21:47
thandal18-Apr-06 21:47 
GeneralRe: chdir code fails at run time Pin
Steve Pullan18-Apr-06 21:52
Steve Pullan18-Apr-06 21:52 
GeneralRe: chdir code fails at run time Pin
thandal18-Apr-06 22:00
thandal18-Apr-06 22:00 
GeneralRe: chdir code fails at run time Pin
Steve Pullan18-Apr-06 22:05
Steve Pullan18-Apr-06 22:05 
GeneralRe: chdir code fails at run time Pin
Steve Pullan18-Apr-06 22:09
Steve Pullan18-Apr-06 22:09 
GeneralRe: chdir code fails at run time Pin
thandal19-Apr-06 1:47
thandal19-Apr-06 1:47 
GeneralRe: chdir code fails at run time Pin
Steve Pullan19-Apr-06 3:37
Steve Pullan19-Apr-06 3:37 
thandal wrote:
here what i want is my program should execute a make file for a c program , which is already in a directory whose path i am writing in trextbox1. i want to compile a cprogram using the make file , whch i want to run from my vb dot net exe


Right... if you'd said this in the first place then we'd have solved it a bit quicker. Moral of the story is: give as much _accurate_ information in the first instance so we don't waste time.

Also I can see that in your code you provided (thanks) not all of it is included so some referenced functions are not available to me for diagnosis.

The problem most likely arises because the path you are giving the program is possibly not fully qualified or that the current working directory of the program is not what it is expecting. When you run in debug mode the application's path is basically the project folder on your C: (or D: or E: whatever..) drive.

Why don't you add some message boxes to your code to display the command being executed at runtime so that you can see whether or not the makefile command is constructed properly (i.e. it has the correct parameters).

Try running that command manually from a command prompt - do the CHDIR() etc... as the program would on your development machine and see what the differences are if any.

...Steve

1. quod erat demonstrandum
2. "Give a man a fish and you've fed him for a day. Teach him how to fish and you've fed him for life."
I read that somewhere once Smile | :)
GeneralRe: chdir code fails at run time Pin
thandal19-Apr-06 4:01
thandal19-Apr-06 4:01 
GeneralRe: chdir code fails at run time Pin
thandal19-Apr-06 4:27
thandal19-Apr-06 4:27 
GeneralRe: chdir code fails at run time Pin
Dave Kreskowiak19-Apr-06 5:19
mveDave Kreskowiak19-Apr-06 5:19 
GeneralRe: chdir code fails at run time Pin
thandal19-Apr-06 19:58
thandal19-Apr-06 19:58 
Questionhi reading xl file Pin
sudharsong18-Apr-06 19:14
sudharsong18-Apr-06 19:14 
QuestionHow to read and write database(SQL Sever) from text and reverse Pin
donle198118-Apr-06 18:13
donle198118-Apr-06 18:13 
AnswerRe: How to read and write database(SQL Sever) from text and reverse Pin
Steve Pullan18-Apr-06 18:53
Steve Pullan18-Apr-06 18:53 
AnswerRe: How to read and write database(SQL Sever) from text and reverse Pin
Duncan Edwards Jones18-Apr-06 20:58
professionalDuncan Edwards Jones18-Apr-06 20:58 
QuestionNeed a good Email Validator function...Help me out! Pin
Amir K118-Apr-06 17:53
Amir K118-Apr-06 17:53 
AnswerRe: Need a good Email Validator function...Help me out! Pin
Dave Kreskowiak19-Apr-06 1:38
mveDave Kreskowiak19-Apr-06 1:38 
GeneralRe: Need a good Email Validator function...Help me out! Pin
Amir K119-Apr-06 6:30
Amir K119-Apr-06 6:30 
GeneralRe: Need a good Email Validator function...Help me out! Pin
Dave Kreskowiak19-Apr-06 11:34
mveDave Kreskowiak19-Apr-06 11:34 
QuestionCan an array be filled from information in a text file Pin
lawrencef1418-Apr-06 17:18
lawrencef1418-Apr-06 17:18 
AnswerRe: Can an array be filled from information in a text file Pin
Steve Pullan18-Apr-06 18:57
Steve Pullan18-Apr-06 18:57 
GeneralRe: Can an array be filled from information in a text file Pin
lawrencef1419-Apr-06 2:22
lawrencef1419-Apr-06 2:22 
GeneralRe: Can an array be filled from information in a text file Pin
Steve Pullan19-Apr-06 4:32
Steve Pullan19-Apr-06 4:32 
GeneralRe: Can an array be filled from information in a text file Pin
lawrencef1419-Apr-06 6:05
lawrencef1419-Apr-06 6:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.