Batch File Issue

W

WaIIy

Hi,

I tried a file splitter and it creates a bat file to rejoin the
sections.

If I split blah.jpg and split it into 4 sections, it creates a bat file
named

blah.jpg.bat

If I click on the bat file, I get an error message "Cannot access the
specified device, path or file. You may not have the appropriate
permissions to access the file".

This is a standalone XP machine with only myself on the machine.

Oddly enough, if I rename it blahjpg.bat, it works fine.

What is the "dot" between the blah and jpg doing to prevent the batch
file from working?

Thanks
 
P

Pegasus \(MVP\)

WaIIy said:
Hi,

I tried a file splitter and it creates a bat file to rejoin the
sections.

If I split blah.jpg and split it into 4 sections, it creates a bat file
named

blah.jpg.bat

If I click on the bat file, I get an error message "Cannot access the
specified device, path or file. You may not have the appropriate
permissions to access the file".

This is a standalone XP machine with only myself on the machine.

Oddly enough, if I rename it blahjpg.bat, it works fine.

What is the "dot" between the blah and jpg doing to prevent the batch
file from working?

Thanks

A .jpg file is a binary file. Splitting it into several components
is fine but naming one of them blah.jpg.bat makes no sense.
Batch files are text files, not binary files, and the data in that
split file would make no sense to the Command Processor.
 
T

Tim Slattery

WaIIy said:
I tried a file splitter and it creates a bat file to rejoin the
sections.
If I split blah.jpg and split it into 4 sections, it creates a bat file
named

If I click on the bat file, I get an error message "Cannot access the
specified device, path or file. You may not have the appropriate
permissions to access the file".
Oddly enough, if I rename it blahjpg.bat, it works fine.
What is the "dot" between the blah and jpg doing to prevent the batch
file from working?

That's very odd, I can't think of why it should do such a thing. It
should look at the extension (the section after the last dot) and
figure out what it is from that. The original DOS and FAT allowed for
only one dot, but it's certainly easy to put multiple dots in
nowadays.
 
W

WaIIy

A .jpg file is a binary file. Splitting it into several components
is fine but naming one of them blah.jpg.bat makes no sense.
Batch files are text files, not binary files, and the data in that
split file would make no sense to the Command Processor.

I didn't explain myself well enough, I guess. The program creates
the batch file so it can be restored.

Again, if I remove the Dot, the batch file works fine.

Maybe read my post again.
 
W

WaIIy

What are the contents of the bat file? Sounds like the programer messed up.

I'll post the contents, but again, if I remove the dot/period, it works
fine.

The program is this--

http://sirisoft.cloud.prohosting.com/documents/software.html

File Splitter

blah.jpg.bat Doesn't work

blahjpg.bat Works

It'a not about a jpg, it's about the batch file name.

Tolly.pdf.bat Doesn't work

Tollypdf.bat Works

This file - Tolly.pdf.bat (I split the file into four parts.)

REM Splitter Software by SiriSoft
REM http://sirisoft.cloud.prohosting.com
copy /b Tolly.000+Tolly.001+Tolly.002+Tolly.003 "Tolly.pdf"

Again, if I changer the name to Tollpdf.bat It works great.

Thanks
 
W

WaIIy

That's very odd, I can't think of why it should do such a thing. It
should look at the extension (the section after the last dot) and
figure out what it is from that. The original DOS and FAT allowed for
only one dot, but it's certainly easy to put multiple dots in
nowadays.


I know, it's wierd. Please see my reply to Bob 1 - you can d/l the
program - standalone. It works fine if I remove the dot from the
filename, any filename in the batch file.

WinXP SP2 I'm the only user, standalone pc.
 
W

WaIIy

I'll post the contents, but again, if I remove the dot/period, it works
fine.

The program is this--

http://sirisoft.cloud.prohosting.com/documents/software.html

File Splitter

blah.jpg.bat Doesn't work

blahjpg.bat Works

It'a not about a jpg, it's about the batch file name.

Tolly.pdf.bat Doesn't work

Tollypdf.bat Works

This file - Tolly.pdf.bat (I split the file into four parts.)

REM Splitter Software by SiriSoft
REM http://sirisoft.cloud.prohosting.com
copy /b Tolly.000+Tolly.001+Tolly.002+Tolly.003 "Tolly.pdf"

Again, if I changer the name to Tollpdf.bat It works great.

Thanks

I'm replying to my own post---

Tolly.pdf.bat doesn't work

Tollypdf.bat works

Tolly.pof.bat works

I think it has something to do with registered file types.

WinXP Home SP2 Standalone
 
B

Bob I

WaIIy said:
I'm replying to my own post---

Tolly.pdf.bat doesn't work

Tollypdf.bat works

Tolly.pof.bat works

I think it has something to do with registered file types.

WinXP Home SP2 Standalone

What it boils down to is that the "programmer" did something that they
shouldn't have done. They should have taken the last 3 chars of the file
name not 4.
 
N

Nightowl

WaIIy said:
I'm replying to my own post---

Tolly.pdf.bat doesn't work

Tollypdf.bat works

Tolly.pof.bat works

I think it has something to do with registered file types.

WinXP Home SP2 Standalone

Hi Wally

I just downloaded FileSplitter and tried splitting a large .jpg. It
created SeptCurrent.jpg.bat and double-clicking that worked fine here
under XP Pro.

I'm wondering: could the problem be caused by some security/anti-malware
program you're running, perhaps? It's just occurred to me because of all
those email nasties that were "double-extension" files,
something.scr.exe etc.

I know it's no comfort but it doesn't seem to be an inherent problem in
the program or in XP.
 
W

WaIIy

Hi Wally

I just downloaded FileSplitter and tried splitting a large .jpg. It
created SeptCurrent.jpg.bat and double-clicking that worked fine here
under XP Pro.

I'm wondering: could the problem be caused by some security/anti-malware
program you're running, perhaps? It's just occurred to me because of all
those email nasties that were "double-extension" files,
something.scr.exe etc.

I know it's no comfort but it doesn't seem to be an inherent problem in
the program or in XP.

Nightowl,

It was kind of you to take the time to d/l the program and check it out.

I was thinking about the double e-mail thing, as that's the only place
I've seen this before. I have only used Eudora 5.2 on this machine and
although I can't discount this, I have a sneaky feeling it might have to
do with some permissions thing, as I have never seen that error message
until I d/l the permissions tab program from Microsoft.

I was fiddling a bit last week with my permissions and set myself as
full control Parent Object - Full control This Folder Subfolders, blah
blah.

Dang, it worked for you in Pro. My brother has Pro and I'll ask him to
try it.

Looks like it just might be something with XP Home or something I
changed along the way. I have had XP on my machine for four years and
have never reloaded.

Hey, works fine, despite my best efforts to screw things up and my
zillion registry edits.

Thanks,
Wally
 
N

Nightowl

WaIIy said:
t was kind of you to take the time to d/l the program and check it out.
You're welcome, Wally; no trouble at all. I'm always interested in this
kind of thing :) I only wish I could have come up with an answer for
you.
I was thinking about the double e-mail thing, as that's the only place
I've seen this before. I have only used Eudora 5.2 on this machine and
although I can't discount this, I have a sneaky feeling it might have to
do with some permissions thing, as I have never seen that error message
until I d/l the permissions tab program from Microsoft.

I was fiddling a bit last week with my permissions and set myself as
full control Parent Object - Full control This Folder Subfolders, blah
blah.

Dang, it worked for you in Pro. My brother has Pro and I'll ask him to
try it.

Looks like it just might be something with XP Home or something I
changed along the way. I have had XP on my machine for four years and
have never reloaded.

Hey, works fine, despite my best efforts to screw things up and my
zillion registry edits.

Hehe, my computer's a bit like that; an elderly 2001-vintage Dell, but
it keeps on plugging away despite everything I've done to it :)

Please do post back if you get any more clues as to what's going wrong.
Good luck!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top