hi guys, so iam writing a program which creates a .bat file in a directory and copies it to another directory through copyfile...the problem is that while the .bat file is created properly but when it's copied to the other directory an error occurs saying its not a win32 appropriate program and when i open it there is a blanc file...same thing happens when i try it with .txt files..so i wonder if copyfile is used only for .exe files...and if so how can i accomplish it with .bat
libathos 0 Light Poster
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
libathos 0 Light Poster
Adak 419 Nearly a Posting Virtuoso
libathos 0 Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.