i got:IT works great but i want to remove the first slash i get. The oupt would be:Code:#include <stdio.h> #include <string.h> #include <ctype.h> void main (void) { char *pdest; int result; int chr = '\\\'; char vFile[] = "c:\\folder\\file.exe"; printf("This is the Normal FilePath: %s",vFile); pdest = strrchr(vFile,chr); result = pdest - vFile + 1; printf("\n\n%s\n\n",pdest); }
Code:This is the Normal FilePath: c:\folder\file.exe \file.exe Press any key to continue


Reply With Quote