Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista General Discussion > how to create file under "system32"?

Reply
Thread Tools Display Modes

how to create file under "system32"?

 
 
Fall
Guest
Posts: n/a

 
      02-19-2008
My questions:
1. is it possible to create new files under "SYSTEM32" in runtime of an
user's application?
2. after the file creation, where to find it?

 
Reply With Quote
 
 
 
 
fuzor_silverbolt
Guest
Posts: n/a

 
      02-19-2008

1.) Yes, given permissions for the operation are acceptible to the os or
permitted by the user. Or if the program is given elevated permissions
by the user on startup.

2.) What do you mean? The file specified would be created on the
specified path. Like: %SystemRoot%\system32\<filename.txt>

Please elaborate more on your question, it is very unclear what you are
looking for... unless I answered it sufficiently.


--
fuzor_silverbolt

-----------My Rig-----------
Manufacturer: Dell Inc.
Processor: Intel(R) Core(TM)2 Quad CPU Q6700 @ 2.66GHz (4 CPUs),
~2.7GHz
Memory: 3326MB RAM
Hard Drive: 984 GB 2x500GB RAID 0
Video Card: NVIDIA GeForce 8800 GT
Monitor: SyncMaster 2220WM/G22PW/220WM(Digital)
Sound Card: SigmaTel High Definition Audio CODEC
Operating System: Windows Vista™ Ultimate 32bit
 
Reply With Quote
 
Mr. Arnold
Guest
Posts: n/a

 
      02-19-2008

"Fall" <> wrote in message
news:3B0EFA1D-AF48-4934-B74F-...
> My questions:
> 1. is it possible to create new files under "SYSTEM32" in runtime of an
> user's application?


The only way that will happen is the application is running with Run As
Administered privileges,when it's saving the file.

> 2. after the file creation, where to find it?
>


If you have to ask this question, then maybe you shouldn't be doing it.

 
Reply With Quote
 
Fall
Guest
Posts: n/a

 
      02-19-2008
Thanks for your answers.
In fact, I use the code below to create file under "SYSTEM32"
ofstream myNewFile;
myNewFile.open("c:\windows\system32\newfile.txt");
myNewFile<<"this is a new file.";
myNewFile.flush();
myNewFile.close();
After running these steps, I can not find the "newfile.txt" under SYSTEM32.

But, when I use the code below to read the file, I can get the content of it:
ifstream ifs;
ifs.open("c:\windows\system32\newfile.txt");
//get data from file
ifs>>m_cBufData;

Where is the file I created?
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help! Vista Cannot create dialup/VPN connections "The wizard cannot create the connection" licensetokill007 Windows Vista Networking 13 04-27-2009 08:52 AM
Error Message "Error Loading C:\Windows\System32\csgina.dll" sstires Windows Vista General Discussion 7 11-02-2007 12:58 PM
Changing "mailto" protocol via registry--no "clients" file under HKEY_USERS Cyn Windows Vista Mail 2 03-01-2007 12:11 PM
Avoid "System32": Where to place an INI file? James Hunter Ross Windows Vista General Discussion 0 02-12-2007 08:58 PM
How to create a file in "Public" on vista OS? Ricmy_zhu Windows Vista Security 0 09-13-2006 09:34 AM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59