Long Filename and "/" not working in XP

EmeraldOracle

Member
Jun 25, 2001
29
0
0
ok Here is the cituation. I had this .bat file that I used to zip up some file and automatically add the date to the end of the file name:

example:
backup 01-20-2000.zip
backup 01-21-2000.zip
backup 01-22-2000.zip
etc......

It works great under windows98 but when I tried it under XP it had problems.

Here is the bat file:
-----------------------------------------


:: gdate.bat (GetDATE)
@ECHO off
SET gdate1=
ECHO SET date=%%3>%temp%.\%%gdate1%%.bat
DIR/A-D/-W/L/-P %temp% | FIND "%%gdate1%%" >%temp%.\%%gdate2%%.bat
SET gdate1=%temp%.\%%gdate1%%
CALL %temp%.\%%gdate2%%.bat
SET gdate1=
DEL %temp%.\%%gdate?%%.bat

pkzip "c:\temp\backup %date%.zip" c:\backup\*.*
_________________________________________________

When I try it in XP I get the error : can't create "backup 1/20/2000.zip"

This happens in XP for two reasons I discovered.

1. when using pkzip it truncates everything to 8 characters, even the files that it is compressing,

example:
when I wanted to zip a file called: "Verylongfilename.zip" it auto-truncated it to Verylong.zip


2. It doesn't like the "/" says its not a valid character (in win98 it auto-changed it to "-" and worked fine)

________

There was also a error I got (but couldn't replicate later) that it didn't like that in the bat file there was this value:

%%gdate1%%

If I shortened it to under 8 Characters it went through fine.

who know why it doesn't give me that problem now.

Anyways need help figuring this one out.

:disgust:
 

EmeraldOracle

Member
Jun 25, 2001
29
0
0


<< you can't have a "/" in a filename. >>



I know..... In Win98 it automatically changed it from "backup 1/1/2000.zip" to "backup 1-1-2000.zip"

with the "-" it works fine.....

 

Haden

Senior member
Nov 21, 2001
578
0
0
You can go to Regional And Language settings and change date format to xxxx-xx-xx (- instead of /).
 

EmeraldOracle

Member
Jun 25, 2001
29
0
0
Thanks I'll Try that.....



-----


OK I also solved the problem with pkziping with a different version of PKZIP.exe Its still v2.50 but this version was for win95/NT and support long file names.

32bit Version of Pkzip.exe

With this version and Changing the Global setting seems to have corrected all the problems.



 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |