- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello
I am trying to use ShellExecute, but apparently I am doing something wrong. I am simply trying to run a dos batch file off of my hard drive. I copied code from steve L.
my code is:
filename='main.bat'
ret = ShellExecute (&
hwnd = NULL, & !!2
lpOperation = "open"C, & !!3
lpFile = trim(filename)//char(0), & !!4
lpParameters = NULL_CHARACTER, & !!5
lpDirectory = 'c:programsS_3-PGSBatch', & !!6
nShowCmd = SW_SHOWNORMAL) !!7
if (ret <= 32) then !!8
write (*,*) "Error ", ret, "opening file"
end if
999 continue
return
end
can someone help, please?
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You probably want:
lpDirectory = 'c:programsS_3-PGSBatch'C, &
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

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