GIDForums  

Go Back   GIDForums > Computer Programming Forums > MS Visual C++ / MFC Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 16-Sep-2005, 05:16
Dominic Dominic is offline
Member
 
Join Date: Aug 2005
Posts: 123
Dominic will become famous soon enough

Cuase the Windows OS to change a filename


I wonder if anyone knows how to cause the Windows Operating System to rename an existing file from within the code of a widows dialog? This would be similar to the system() function in unix.

I have used "ShellExecuteEx()" to open a file for the user, from within the code, so I susspect there is a similar way to shell other windows commands.

Thanx for the help (hopefully)
  #2  
Old 16-Sep-2005, 09:05
Dominic Dominic is offline
Member
 
Join Date: Aug 2005
Posts: 123
Dominic will become famous soon enough

Question Answered


Should have guessed, its called ... system() and takes a string !!
  #3  
Old 20-Sep-2005, 15:56
aie0 aie0 is offline
Member
 
Join Date: Dec 2004
Posts: 246
aie0 is a jewel in the roughaie0 is a jewel in the rough
SHFileOperation(..) is what you are looking for.
 
 

Recent GIDBlogPython ebook by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Command & Conquer 95 under XP dexter Computer Software Forum - Games 42 20-Sep-2008 14:30
CDialog::Onsize problem in Windows 2000 Professional Environment vikravel MS Visual C++ / MFC Forum 0 31-Jan-2005 07:59
Trouble with Windows XP vsseym Computer Software Forum - Windows 29 12-Aug-2004 04:56
Article by the W3C - Cool URI's don't change jrobbio Web Design Forum 4 28-Apr-2003 07:40

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 11:41.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.