PC Review


Reply
Thread Tools Rate Thread

.bat / Dos Script Issues.

 
 
Kardon Coupé
Guest
Posts: n/a
 
      25th Jul 2008
Dear All,

I'm having a bit of a problem with a .bat script and I can't find a
newsgroup specific to this and was wondering if anybody can help....

I've got a regular issue of having to right click on a custom file and
rar'ing it up, then copying the file to a location (which doesn't change) on
a networked drive...

I tried to make a .bat script that says...

"C:\Program Files\WinRAR\rar.exe" %1.rar a -ad %1 >output.txt {output.txt
was just to see if there are any errors)
xcopy [newfilecreated] [networkdrivelocation] /Y

Then, setup a 'Right Click' option for the context menu that says, 'Rar 'n'
Copy' then I right click on the file, choose it and it does it all for
me.....

and I know a lot of people will be saying... "you need a Win/Rar forum" but
the issue I've got is I can't pull the filename I'm right clicking (Setup
from Explorer/Tools/Folder Options/ File Types/{Extension}/Advanced) on into
the .bat script, so I'm thinking it is a windows issue first? basically I'd
like to pass the filename to Rar.exe and then get rar.exe to do it's stuff,
then the batch script will continue and copy the file over..

Hope someone understands what I'm trying to say and it able to help me...

Regards
Paul.


 
Reply With Quote
 
 
 
 
Pegasus \(MVP\)
Guest
Posts: n/a
 
      25th Jul 2008

"Kardon Coupé" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Dear All,
>
> I'm having a bit of a problem with a .bat script and I can't find a
> newsgroup specific to this and was wondering if anybody can help....
>
> I've got a regular issue of having to right click on a custom file and
> rar'ing it up, then copying the file to a location (which doesn't change)
> on a networked drive...
>
> I tried to make a .bat script that says...
>
> "C:\Program Files\WinRAR\rar.exe" %1.rar a -ad %1 >output.txt {output.txt
> was just to see if there are any errors)
> xcopy [newfilecreated] [networkdrivelocation] /Y
>
> Then, setup a 'Right Click' option for the context menu that says, 'Rar
> 'n' Copy' then I right click on the file, choose it and it does it all for
> me.....
>
> and I know a lot of people will be saying... "you need a Win/Rar forum"
> but the issue I've got is I can't pull the filename I'm right clicking
> (Setup from Explorer/Tools/Folder Options/ File
> Types/{Extension}/Advanced) on into the .bat script, so I'm thinking it is
> a windows issue first? basically I'd like to pass the filename to Rar.exe
> and then get rar.exe to do it's stuff, then the batch script will continue
> and copy the file over..
>
> Hope someone understands what I'm trying to say and it able to help me...
>
> Regards
> Paul.


The technique shown in the following link can easily be tweaked to do your
job: http://support.microsoft.com/?kbid=321379 (Print directory listing).


 
Reply With Quote
 
Kardon Coupé
Guest
Posts: n/a
 
      25th Jul 2008
Thanks, the direction of that helped me alot..

Regards
Paul.
"Pegasus (MVP)" <(E-Mail Removed)> wrote in message
news:O$(E-Mail Removed)...
>
> "Kardon Coupé" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Dear All,
>>
>> I'm having a bit of a problem with a .bat script and I can't find a
>> newsgroup specific to this and was wondering if anybody can help....
>>
>> I've got a regular issue of having to right click on a custom file and
>> rar'ing it up, then copying the file to a location (which doesn't change)
>> on a networked drive...
>>
>> I tried to make a .bat script that says...
>>
>> "C:\Program Files\WinRAR\rar.exe" %1.rar a -ad %1 >output.txt
>> {output.txt was just to see if there are any errors)
>> xcopy [newfilecreated] [networkdrivelocation] /Y
>>
>> Then, setup a 'Right Click' option for the context menu that says, 'Rar
>> 'n' Copy' then I right click on the file, choose it and it does it all
>> for me.....
>>
>> and I know a lot of people will be saying... "you need a Win/Rar forum"
>> but the issue I've got is I can't pull the filename I'm right clicking
>> (Setup from Explorer/Tools/Folder Options/ File
>> Types/{Extension}/Advanced) on into the .bat script, so I'm thinking it
>> is a windows issue first? basically I'd like to pass the filename to
>> Rar.exe and then get rar.exe to do it's stuff, then the batch script will
>> continue and copy the file over..
>>
>> Hope someone understands what I'm trying to say and it able to help me...
>>
>> Regards
>> Paul.

>
> The technique shown in the following link can easily be tweaked to do your
> job: http://support.microsoft.com/?kbid=321379 (Print directory listing).
>



 
Reply With Quote
 
Twayne
Guest
Posts: n/a
 
      25th Jul 2008
> Dear All,
>
> I'm having a bit of a problem with a .bat script and I can't find a
> newsgroup specific to this and was wondering if anybody can help....
>
> I've got a regular issue of having to right click on a custom file and
> rar'ing it up, then copying the file to a location (which doesn't
> change) on a networked drive...
>
> I tried to make a .bat script that says...
>
> "C:\Program Files\WinRAR\rar.exe" %1.rar a -ad %1 >output.txt
> {output.txt was just to see if there are any errors)
> xcopy [newfilecreated] [networkdrivelocation] /Y
>
> Then, setup a 'Right Click' option for the context menu that says,
> 'Rar 'n' Copy' then I right click on the file, choose it and it does
> it all for me.....
>
> and I know a lot of people will be saying... "you need a Win/Rar
> forum" but the issue I've got is I can't pull the filename I'm right
> clicking (Setup from Explorer/Tools/Folder Options/ File
> Types/{Extension}/Advanced) on into the .bat script, so I'm thinking
> it is a windows issue first? basically I'd like to pass the filename
> to Rar.exe and then get rar.exe to do it's stuff, then the batch
> script will continue and copy the file over..
> Hope someone understands what I'm trying to say and it able to help
> me...
> Regards
> Paul.


alt.msdos.batch.nt guys are great with XP batches. If your ISP tossed
out the alt.*, try an alternate place like news.aloe.org or one of many
others.

HTH


 
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
Random Logon Script Issues Corey Arndt Microsoft Windows 2000 Active Directory 1 17th Jun 2005 07:03 PM
Permission Issues running Logon Script =?Utf-8?B?UGFuZGE=?= Windows XP Networking 0 26th Apr 2005 08:06 AM
Hostile Script/ Device driver Issues =?Utf-8?B?Sm9l?= Windows XP Performance 1 4th Jun 2004 09:01 AM
Logon script issues =?Utf-8?B?R2VycnkgUmlnbmV5?= Microsoft Windows 2000 Terminal Server Applications 2 17th Mar 2004 01:12 PM
Java Script Errors and Text Issues bigbuddy Microsoft Outlook 0 12th Jan 2004 11:15 AM


Features
 

Advertising
 

Newsgroups
 


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