When I had to reload Windows XP program, it lost the address to "My Documents" (old), so that when you now click on "My Documents" (new) it is of course empty. I did not panic though, because I know all my million-and-one documents are still on the hard drive-- it was not erased or reformated or anything--it is just that they are temporarily "lost" because the icon no longer points to them. When I trace the path thru C:\Documents %26amp; Settings/etc., and click on the old "My Documents" it says I am not allowed to get in. Yet I was and still am the only System Administrator on the PC! I know all my old Word documents are still there because when I ran the free On Track Easy Recovery Professional software, it showed my entire former line up of subdirectories with all the various named documents I am looking for therein. The only trouble is, they want $200.00 (two hundred smackers) just for the right to re-save them all in the current (empty) "My Documents" folder. How do I re-map?
Dear Network Nerd Herd: Help! I know this can be done, I just don't know how to Re-Map hidden directories...
lol, I like the request.
on the off chance that you may be wrong about the administrator thing what username are you logging in under?
If you are logging in under the username "Administrator" than you are truly system administrator. If not, than you have only user powers and that would explain the restriction.
If this is not the case the best solution is using a boot up CD.
I reccommend one of the boot up versions of Linux, the OS comes as small as 1.44MB, and it still has a GUI ^_^
Tuesday, July 14, 2009
Dear Network Nerd Herd: Help! I know this can be done, I just don't know how to Re-Map hidden directories...
Will garmin mapsource city navigator north america maps download onto my etrex vista c?
Garmin lists City Nav NA as an accessory for the Vista C on their web page at https://buy.garmin.com/shop/shop.do?cID=... (on the maps tab).
The unit description includes the ability to create routes in real time that is one of the features of City Nav
The unit description includes the ability to create routes in real time that is one of the features of City Nav
Can you VOTE [Evil C. vs. HNIC]?
VOTE FAIR:
VERSES BELOW
EVIL CONSCIENCE VERSE
Hnic took this battle? "DIS KID IS SCREWED", I'ma put "DIS DUDE ON THE NEWS", my "RHYME'S ARE THE TRUTH", just like the fact I put him higher than "DEVIN THE DUDE!!"//In case you do'nt know, that mean's I "KILLED THIS CAT", homie dis ain't no "pun" when i say "I'MA HAVE YOU SLAPPED", son da "COOL IS BACK"/"Kool is back", and I ain't talkin bout the way "DAT G RAP"//he's "LEFT IN THE QUICKSAND" cuz him "AND HIS FAM ARE F*****D" cuz they "IN DA ENEMY HANDS" like "R.A. THE RUGGED MAN!!"(Uncommon valor--a vietnam story)//everybody know's that//for some of ya'll "THE BEEF IS ON WAX", son, my "BEEF IS ON PLAQUES", that read: Date of death: "THA DAY THAT WE BATTLE RAPPED!!"
HNIC VERSE
Into systems i tap, pilin stacks, flows like an unidentified storm; Impossible to map,
Makes the clouds clear like crowds do when Evil try to rap; this act, we "takin no prisoners" cuz like Fitted Caps
Its a New Era, a new terror, alert is high, hurtin "Evil" guys erase ya life, Correct da error,
Conscience couldnt be evil if he was Satan's tech wearer/
sumthins wrong wit your rhymes, I'll repair her, cuz wit every verse Im reborn, humanitarian; i could "REASSURE HAITI",
u wait till the last bar to make ur point, while my punches come early, like PREMATURE BABIES/
Im high ranked, you a "C" class Mercedes, I 'shoot tombs' then 'boot fumes' to ya head, but it seems as tho Samuel is IMMUNE TO KNOWLEDGE,
total number of points u got on Y!A, is the same number of points u scored on ur SAT; thats why ur a** is at COMMUNITY COLLEGE/
Packed solid in MOUNTAINS 'tips hollow' u preachin gats but we know they dont stunt like that in 'colorado',
my lead 'u follow', i drink ya blood thru a FOUNTAIN, on the side of it; a R.I.P. Squadron List", its now 2 dead b*tches and COUNTIN
Can you VOTE [Evil C. vs. HNIC]?
hahaha...half my rhymes on here are whack cuz I'm tryin to change up my style in them....and I don't think many people will get my RA line...
Reply:Imma say HNIC...But Evil did his thing...Evil I got the RA line...that was tight...
Reply:evil I like your verse "I'MA HAVE YOU SLAPPED", son da "COOL IS BACK"/"Kool is back", and I ain't talkin bout the way "DAT G RAP"
but...............
gotta go with HNIC on this one.
my favorite verse:
Conscience couldnt be evil if he was Satan's tech wearer/
sumthins wrong wit your rhymes, I'll repair her, cuz wit every verse Im reborn, humanitarian; i could "REASSURE HAITI"
Reply:Evil C...
Reply:Im going with HNIC..although Evil is mad witty, but I think HNIC had those punchlines that just won the entire thing.."immune to knowledge..." ridiculous line.
Very good battle
Reply:I think Evil C has a great punchline.But overall I'll say HNIC won.
Reply:HNIC
Reply:Iunno....I think I'm gonna say HNIC, although a couple of your multis seemed force and didn't really make sense..lol
Good Battle tho
Reply:oh yea... lol keep forgetting im allowed to vote
i'll say HNIC got this one.... Evils verse was nice.... but HNIC hit with almost every line of this
"u wait till the last bar to make ur point, while my punches come early, like PREMATURE BABIES/"
"Conscience couldnt be evil if he was Satan's tech wearer/"
"total number of points u got on Y!A, is the same number of points u scored on ur SAT; thats why ur a** is at COMMUNITY COLLEGE/"
hahahaha..... nice verse to both... but HNIC took this
Reply:evil is improving but hnic wonnn........
VERSES BELOW
EVIL CONSCIENCE VERSE
Hnic took this battle? "DIS KID IS SCREWED", I'ma put "DIS DUDE ON THE NEWS", my "RHYME'S ARE THE TRUTH", just like the fact I put him higher than "DEVIN THE DUDE!!"//In case you do'nt know, that mean's I "KILLED THIS CAT", homie dis ain't no "pun" when i say "I'MA HAVE YOU SLAPPED", son da "COOL IS BACK"/"Kool is back", and I ain't talkin bout the way "DAT G RAP"//he's "LEFT IN THE QUICKSAND" cuz him "AND HIS FAM ARE F*****D" cuz they "IN DA ENEMY HANDS" like "R.A. THE RUGGED MAN!!"(Uncommon valor--a vietnam story)//everybody know's that//for some of ya'll "THE BEEF IS ON WAX", son, my "BEEF IS ON PLAQUES", that read: Date of death: "THA DAY THAT WE BATTLE RAPPED!!"
HNIC VERSE
Into systems i tap, pilin stacks, flows like an unidentified storm; Impossible to map,
Makes the clouds clear like crowds do when Evil try to rap; this act, we "takin no prisoners" cuz like Fitted Caps
Its a New Era, a new terror, alert is high, hurtin "Evil" guys erase ya life, Correct da error,
Conscience couldnt be evil if he was Satan's tech wearer/
sumthins wrong wit your rhymes, I'll repair her, cuz wit every verse Im reborn, humanitarian; i could "REASSURE HAITI",
u wait till the last bar to make ur point, while my punches come early, like PREMATURE BABIES/
Im high ranked, you a "C" class Mercedes, I 'shoot tombs' then 'boot fumes' to ya head, but it seems as tho Samuel is IMMUNE TO KNOWLEDGE,
total number of points u got on Y!A, is the same number of points u scored on ur SAT; thats why ur a** is at COMMUNITY COLLEGE/
Packed solid in MOUNTAINS 'tips hollow' u preachin gats but we know they dont stunt like that in 'colorado',
my lead 'u follow', i drink ya blood thru a FOUNTAIN, on the side of it; a R.I.P. Squadron List", its now 2 dead b*tches and COUNTIN
Can you VOTE [Evil C. vs. HNIC]?
hahaha...half my rhymes on here are whack cuz I'm tryin to change up my style in them....and I don't think many people will get my RA line...
Reply:Imma say HNIC...But Evil did his thing...Evil I got the RA line...that was tight...
Reply:evil I like your verse "I'MA HAVE YOU SLAPPED", son da "COOL IS BACK"/"Kool is back", and I ain't talkin bout the way "DAT G RAP"
but...............
gotta go with HNIC on this one.
my favorite verse:
Conscience couldnt be evil if he was Satan's tech wearer/
sumthins wrong wit your rhymes, I'll repair her, cuz wit every verse Im reborn, humanitarian; i could "REASSURE HAITI"
Reply:Evil C...
Reply:Im going with HNIC..although Evil is mad witty, but I think HNIC had those punchlines that just won the entire thing.."immune to knowledge..." ridiculous line.
Very good battle
Reply:I think Evil C has a great punchline.But overall I'll say HNIC won.
Reply:HNIC
Reply:Iunno....I think I'm gonna say HNIC, although a couple of your multis seemed force and didn't really make sense..lol
Good Battle tho
Reply:oh yea... lol keep forgetting im allowed to vote
i'll say HNIC got this one.... Evils verse was nice.... but HNIC hit with almost every line of this
"u wait till the last bar to make ur point, while my punches come early, like PREMATURE BABIES/"
"Conscience couldnt be evil if he was Satan's tech wearer/"
"total number of points u got on Y!A, is the same number of points u scored on ur SAT; thats why ur a** is at COMMUNITY COLLEGE/"
hahahaha..... nice verse to both... but HNIC took this
Reply:evil is improving but hnic wonnn........
How many miles it from daytona to washington D.C?
i got a map project and i need to know how many miles it is from daytona to washington D.C and from washington D.C to harrisburg
How many miles it from daytona to washington D.C?
It is approx 810 miles from Daytona FL to DC. Depends on what source you use. It is approx 199 from DC to Harrisburg. Hope this helps!!!!
bouquet
How many miles it from daytona to washington D.C?
It is approx 810 miles from Daytona FL to DC. Depends on what source you use. It is approx 199 from DC to Harrisburg. Hope this helps!!!!
bouquet
Ware do I find 3 D Maps of Manhatten Island N.Y.C.?
Try Google Earth.
Ware do I find 3 D Maps of Manhatten Island N.Y.C.?
Google Earth
Reply:Google earth can help
Ware do I find 3 D Maps of Manhatten Island N.Y.C.?
Google Earth
Reply:Google earth can help
Trying to get driving directions from New Bern, n.c.28560 to San Destin, Fl.32250?
I'm looking for a map, with the best route to get to Destin,Fl32250 FROM New Bern, N.C.28560
Trying to get driving directions from New Bern, n.c.28560 to San Destin, Fl.32250?
try using mapquest.com
Reply:Have you tried MapQuest or Google Maps? From my own experience these usually seem to provide valid traveling directions.
Reply:http://maps.yahoo.com/dd
Trying to get driving directions from New Bern, n.c.28560 to San Destin, Fl.32250?
try using mapquest.com
Reply:Have you tried MapQuest or Google Maps? From my own experience these usually seem to provide valid traveling directions.
Reply:http://maps.yahoo.com/dd
Hi! How do I open a file in C and create one if it doesn't exist?
I have a problem with creating a file in C. I would like to open existing file (or create one if it doesn't exist) and write something into it:
/* open the file */
if ((shfd = open(argv[2], O_CREAT | O_RDWR, 0677)) %26lt; 0)
my_error("open failed");
/* map a portion of the file to buffer in memory */
if ((mem = mmap(0,SIZE,PROT_READ | PROT_WRITE, MAP_SHARED, shfd, 0)) == (void *)-1)
my_error("mmap failed");
sprintf(mem, "%d", getpid());
However, when the file doesn't exist and is created, its empty, and I get "bus error" message at the last line... If I try to write something to the file that already exists and is empty, I get the same message. If it exists and is not empty, it works fine...
Could anyone please help? I would really appreciate any help, since I don't know why I'm getting that error...
Thanks a lot for your time.
Hi! How do I open a file in C and create one if it doesn't exist?
You can't extend a file with mmap(). You can map
memory that you might write into, but when you close
or fsync the file, it will NOT be extended.
The historical way to do this is to lseek to the position
you want and write a single byte. The filesystem will
arrange that the intervening bytes will look like zeros.
I've modified your program snippet to open a file,
mmap it, and scribble in a bunch of bytes -- while
preserving whatever is there. It's not particularly
clever, but it should show most of the details you're
looking for. You can contact me through YA if you
have questions.
#include %26lt;sys/types.h%26gt;
#include %26lt;sys/stat.h%26gt;
#include %26lt;fcntl.h%26gt;
#include %26lt;sys/stat.h%26gt;
#include %26lt;unistd.h%26gt;
#include %26lt;sys/mman.h%26gt;
#include %26lt;stdio.h%26gt;
#include %26lt;string.h%26gt;
#include %26lt;stdlib.h%26gt;
int
main(int argc, char* argv[])
{
int shfd;
struct stat statbuff;
char *filename = argc%26gt;1 ? argv[1] : "testfile";
int mmapsize = argc%26gt;2 ? atoi(argv[2]) : 100000;
char *mem;
/* open the file */
if ((shfd = open(filename, O_CREAT | O_RDWR, 0677)) %26lt; 0)
perror("open failed"), exit(-1);
/* if it is too small, we will extend the file for the mmap */
if (fstat(shfd, %26amp;statbuff) != 0)
perror("stat"), exit(-1);
if (statbuff.st_size %26lt; mmapsize) {
if (lseek(shfd, mmapsize-1, SEEK_SET) == (off_t)-1)
perror("lseek"), exit(-1);
if (write(shfd, "\0", 1) %26lt; 0)
perror("write"), exit(-1);
}
/* map a portion of the file to buffer in memory */
if ((mem = mmap(0, mmapsize, PROT_READ | PROT_WRITE, MAP_SHARED, shfd, 0)) == MAP_FAILED)
perror("mmap failed"), exit(-1);
/* scribble on the file *after* whatever was already there */
if (statbuff.st_size %26lt; mmapsize)
memset(mem+statbuff.st_size, 'X', mmapsize-statbuff.st_size);
if (close(shfd) %26lt; 0)
perror("close"), exit(-1);
return 0;
}
Reply:Hmmm, I dont follow how you are trying to do it but this is how I always do it.
void main()
{
FILE *Pfile;
char FileName[] = "nameoffile";
char buffer[];
//open file or create if it doesnt exsist
Pfile = fopen(FileName, "w"); // w = open for write
// r = open for read
// wb = open binary for write
//fill buffer with what you want to write to file
strcat(buffer, "stuff you want to add to file");
//write buffer to the file
fwrite(%26amp;buffer, strlen(buffer), 1, Pfile);
//DONT forget to close the file when done!!
fclose(Pfile);
}
/* open the file */
if ((shfd = open(argv[2], O_CREAT | O_RDWR, 0677)) %26lt; 0)
my_error("open failed");
/* map a portion of the file to buffer in memory */
if ((mem = mmap(0,SIZE,PROT_READ | PROT_WRITE, MAP_SHARED, shfd, 0)) == (void *)-1)
my_error("mmap failed");
sprintf(mem, "%d", getpid());
However, when the file doesn't exist and is created, its empty, and I get "bus error" message at the last line... If I try to write something to the file that already exists and is empty, I get the same message. If it exists and is not empty, it works fine...
Could anyone please help? I would really appreciate any help, since I don't know why I'm getting that error...
Thanks a lot for your time.
Hi! How do I open a file in C and create one if it doesn't exist?
You can't extend a file with mmap(). You can map
memory that you might write into, but when you close
or fsync the file, it will NOT be extended.
The historical way to do this is to lseek to the position
you want and write a single byte. The filesystem will
arrange that the intervening bytes will look like zeros.
I've modified your program snippet to open a file,
mmap it, and scribble in a bunch of bytes -- while
preserving whatever is there. It's not particularly
clever, but it should show most of the details you're
looking for. You can contact me through YA if you
have questions.
#include %26lt;sys/types.h%26gt;
#include %26lt;sys/stat.h%26gt;
#include %26lt;fcntl.h%26gt;
#include %26lt;sys/stat.h%26gt;
#include %26lt;unistd.h%26gt;
#include %26lt;sys/mman.h%26gt;
#include %26lt;stdio.h%26gt;
#include %26lt;string.h%26gt;
#include %26lt;stdlib.h%26gt;
int
main(int argc, char* argv[])
{
int shfd;
struct stat statbuff;
char *filename = argc%26gt;1 ? argv[1] : "testfile";
int mmapsize = argc%26gt;2 ? atoi(argv[2]) : 100000;
char *mem;
/* open the file */
if ((shfd = open(filename, O_CREAT | O_RDWR, 0677)) %26lt; 0)
perror("open failed"), exit(-1);
/* if it is too small, we will extend the file for the mmap */
if (fstat(shfd, %26amp;statbuff) != 0)
perror("stat"), exit(-1);
if (statbuff.st_size %26lt; mmapsize) {
if (lseek(shfd, mmapsize-1, SEEK_SET) == (off_t)-1)
perror("lseek"), exit(-1);
if (write(shfd, "\0", 1) %26lt; 0)
perror("write"), exit(-1);
}
/* map a portion of the file to buffer in memory */
if ((mem = mmap(0, mmapsize, PROT_READ | PROT_WRITE, MAP_SHARED, shfd, 0)) == MAP_FAILED)
perror("mmap failed"), exit(-1);
/* scribble on the file *after* whatever was already there */
if (statbuff.st_size %26lt; mmapsize)
memset(mem+statbuff.st_size, 'X', mmapsize-statbuff.st_size);
if (close(shfd) %26lt; 0)
perror("close"), exit(-1);
return 0;
}
Reply:Hmmm, I dont follow how you are trying to do it but this is how I always do it.
void main()
{
FILE *Pfile;
char FileName[] = "nameoffile";
char buffer[];
//open file or create if it doesnt exsist
Pfile = fopen(FileName, "w"); // w = open for write
// r = open for read
// wb = open binary for write
//fill buffer with what you want to write to file
strcat(buffer, "stuff you want to add to file");
//write buffer to the file
fwrite(%26amp;buffer, strlen(buffer), 1, Pfile);
//DONT forget to close the file when done!!
fclose(Pfile);
}
Subscribe to:
Posts (Atom)