Urgent help needed!! - WinExec
-
hi, I use the WinExec command to run files fine but a cant get the following to work & I have no ideas why. Please help me with my final year BSc own Project. WinExec("copy "+m_Logo+" logo.*", SW_HIDE); note: m_Logo is a CString that contains: c:\test\test.jpg or such thanks again An Expert is somone who has previously made ALL the Mistakes, I dream of this day. - Lucky
-
hi, I use the WinExec command to run files fine but a cant get the following to work & I have no ideas why. Please help me with my final year BSc own Project. WinExec("copy "+m_Logo+" logo.*", SW_HIDE); note: m_Logo is a CString that contains: c:\test\test.jpg or such thanks again An Expert is somone who has previously made ALL the Mistakes, I dream of this day. - Lucky
;P I will answer myself as knowone else has!! ;P WinExec unlike system only executes files (*.bat, *.exe, etc). copy is not a file it is part of the command.com file (win32) or cmd.exe file (winNT). The command i needed was: command.com /c eg: WinExec("command.com /c copy "+m_Logo+" logo.*", SW_HIDE); note: m_Logo is a CString that contains: c:\test\test.jpg or such Im gettin there!! :) An Expert is somone who has previously made ALL the Mistakes, I dream of this day. - Lucky
-
;P I will answer myself as knowone else has!! ;P WinExec unlike system only executes files (*.bat, *.exe, etc). copy is not a file it is part of the command.com file (win32) or cmd.exe file (winNT). The command i needed was: command.com /c eg: WinExec("command.com /c copy "+m_Logo+" logo.*", SW_HIDE); note: m_Logo is a CString that contains: c:\test\test.jpg or such Im gettin there!! :) An Expert is somone who has previously made ALL the Mistakes, I dream of this day. - Lucky
Er. Pardon me for asking. But what's wrong with using
CopyFile
? Nish
The rumours that I am an AI bot are absolutely false. These rumours have been propogated by *them* to focus all the attention on to me, while *their* bots take over the planet. Thank y%%%% Divide by zero. Cannot proceed. Abort(y/y)?
-
Er. Pardon me for asking. But what's wrong with using
CopyFile
? Nish
The rumours that I am an AI bot are absolutely false. These rumours have been propogated by *them* to focus all the attention on to me, while *their* bots take over the planet. Thank y%%%% Divide by zero. Cannot proceed. Abort(y/y)?
Thanx, i will try that. that would be a lot more tidy. Do you know how to preview a jpg or gif in open dialog? I use GetOpenFileNamePreview for showing avi files but havent found a way for images. is there a way or do i need to create some kinda shell around the standard box? - im askin you cos u seem to always have correct & clear answers!! Thanx again An Expert is somone who has previously made ALL the Mistakes, I dream of this day. - Lucky