PC Review


Reply
Thread Tools Rate Thread

Batch File Issue

 
 
WaIIy
Guest
Posts: n/a
 
      15th Oct 2007

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
 
Reply With Quote
 
 
 
 
Pegasus \(MVP\)
Guest
Posts: n/a
 
      15th Oct 2007

"WaIIy" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>
> 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.


 
Reply With Quote
 
Bob I
Guest
Posts: n/a
 
      15th Oct 2007
What are the contents of the bat file? Sounds like the programer messed up.

WaIIy wrote:

> 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


 
Reply With Quote
 
Tim Slattery
Guest
Posts: n/a
 
      15th Oct 2007
WaIIy <(E-Mail Removed)> wrote:

>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".


>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.

--
Tim Slattery
MS MVP(DTS)
(E-Mail Removed)
http://members.cox.net/slatteryt
 
Reply With Quote
 
WaIIy
Guest
Posts: n/a
 
      16th Oct 2007
On Mon, 15 Oct 2007 21:54:40 +0200, "Pegasus \(MVP\)" <(E-Mail Removed)>
wrote:

>
>"WaIIy" <(E-Mail Removed)> wrote in message
>news:(E-Mail Removed)...
>>
>> 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.
>


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.

 
Reply With Quote
 
WaIIy
Guest
Posts: n/a
 
      16th Oct 2007
On Mon, 15 Oct 2007 15:05:40 -0500, Bob I <(E-Mail Removed)> wrote:

>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.../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




>WaIIy wrote:
>
>> 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


 
Reply With Quote
 
WaIIy
Guest
Posts: n/a
 
      16th Oct 2007
On Mon, 15 Oct 2007 16:08:24 -0400, Tim Slattery <(E-Mail Removed)>
wrote:

>WaIIy <(E-Mail Removed)> wrote:
>
>>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".

>
>>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.



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.


 
Reply With Quote
 
WaIIy
Guest
Posts: n/a
 
      16th Oct 2007
On Mon, 15 Oct 2007 20:29:03 -0400, WaIIy <(E-Mail Removed)>
wrote:

>On Mon, 15 Oct 2007 15:05:40 -0500, Bob I <(E-Mail Removed)> wrote:
>
>>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.../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
 
Reply With Quote
 
Bob I
Guest
Posts: n/a
 
      16th Oct 2007


WaIIy wrote:

> On Mon, 15 Oct 2007 20:29:03 -0400, WaIIy <(E-Mail Removed)>
> wrote:
>
>
>>On Mon, 15 Oct 2007 15:05:40 -0500, Bob I <(E-Mail Removed)> wrote:
>>
>>
>>>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.../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


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.

 
Reply With Quote
 
Nightowl
Guest
Posts: n/a
 
      16th Oct 2007
WaIIy <(E-Mail Removed)> wrote on Mon, 15 Oct 2007:

>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.

--
Nightowl
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
A script/batch to kill a batch file from scheduled tasks? Bogdan Windows XP Configuration 1 31st Jul 2009 06:05 AM
Batch file issue installing templates in Vista 64 Colleen M Microsoft Access VBA Modules 1 5th May 2009 04:51 AM
batch file call from a macro - how ? and required batch format VB-rookie Microsoft Excel Programming 3 5th Sep 2008 10:33 PM
Outlook 2003 link to batch file issue. 775mike@gmail.com Microsoft Outlook Discussion 0 17th Nov 2006 10:49 PM
batch file issue mark Windows XP General 2 25th May 2004 10:19 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:31 AM.