View Single Post
Old 19 October 2001, 11:33   #1
Big-Byte
Long time member

Big-Byte's Avatar
 
Join Date: Jul 2001
Location: UK
Posts: 753
Anyone know C++ ?

Ive just started to learn C++ and am trying to write a program
to report / rename any of my adf files that are over 64 chars long to < 64 chars (So I can put them on cd)

Code Ive done so far..

#include <stdio.h>
#include <iostream.h>
#include <string.h>

int main(int argc, char *argv[])
{

char *old_file_name;
int ofn_length = 0; // Old filename length

char new_file_name[64];

int temp;

old_file_name = argv[1];
ofn_length = strlen(old_file_name);

cout << "Arg count = " << argc << "\n" ;
cout << "File name passed in = " << old_file_name << "\n";
cout << "Length of file name = " << ofn_length << "\n" ;

cin >> temp;

return 0;
}

Problem is when I call my program passing in filenames, the filenames passed in are the dos 8:3 format and not the long format.

Any help would be appreciated.
Big-Byte is offline  
AdSense AdSense  
 
Page generated in 0.05229 seconds with 9 queries