- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If my STR is defined as 'CD "C:Program FilesBlah SomethingSomething" '
And I call,
CALL SYSTEM(STR)
Shouldn't this change my working directory? Doesn't seem to work :-
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
SYSTEM creates a new process. It changes the working directory of the new process, which then exits. Same thing if you try to do a "set" using SYSTEM. You want the SetCurrentDirectory Win32 API routine.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page