Gary Kuznitz | 14 May 2013 22:48

Unzip can't find file

When I run this in a bat file:

  <at> Echo Off
 Set SavedIn=C:\Dnload\QuattroProLegalSystemZenas\
 PKUNZIP -e -o %SavedIn%ZenasMacros.zip 
C:\Cases\Zenas\Macros\*.*
 PKUNZIP -e -o %SavedIn%ZenasForms.zip 
C:\Cases\Zenas\Forms\*.*
 CMD
Note: Anything in column one has wrapped

I get an error saying:
PKUNZIP: (E09) can't find: 
C:/Dnload/QuattroProLegalSystemZenas/ZenasMacros.zip
PKUNZIP: (E09) can't find: 
C:/Dnload/QuattroProLegalSystemZenas/ZenasForms.zip

Running in XP Pro sp3

Thanks,

Gary

------------------------------------

To Post a message, send it to:   batchworld@...

To Unsubscribe, send a blank message to:
batchworld-unsubscribe@...! Groups Links

(Continue reading)

Gary Kuznitz | 8 Mar 2013 21:30

Can't delete a file

I can't delete a file in a bat script.

The user name I am signed on to on  PC1 I am running this from is also on the \\Docfxit 
PC2 with the same password.

The permissions for the Backup folder on PC2 show for the user I am signed on to on 
PC1 Full Control for this folder, subfolders and files.

If I use a file manager I can delete files from PC1 in the 
\\Docfxit\Backup\QBPreviousBackup\                       folder.

The dos window shows this:
A subdirectory or file \\Docfxit\Backup\QBDaily already exists.
A subdirectory or file \\Docfxit\Backup\QBLastBackup already exists.
A subdirectory or file \\Docfxit\Backup\QBPreviousBackup already exists.
Moving 3-day file to the recycle bin...

Dos finds the path to echo  "Moving 3-day file to the recycle bin..." but it can't delete 
the file.

The Bat file I am using is:
 <at> echo off
C:
 CLS
 IF NOT EXIST \\Docfxit\Backup\QBDaily\ MD \\Docfxit\Backup\QBDaily 1>  
c:\backup.log 
 IF NOT EXIST \\Docfxit\Backup\QBLastBackup\ MD 
\\Docfxit\Backup\QBLastBackup 1>>  c:\backup.log
 IF NOT EXIST \\Docfxit\Backup\QBPreviousBackup\ MD 
\\Docfxit\Backup\QBPreviousBackup 1>>  c:\backup.log
(Continue reading)

goshainganj | 12 Feb 2013 10:00
Picon
Favicon

Printing to "Send To OneNote 2010"

How would you print a file say "C:\mydoc.docx" to "Send To OneNote 2010" using a batch file?

Thanx
Kailash

------------------------------------

To Post a message, send it to:   batchworld@...

To Unsubscribe, send a blank message to:
batchworld-unsubscribe@...! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/batchworld/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/batchworld/join
    (Yahoo! ID required)

<*> To change settings via email:
    batchworld-digest@... 
    batchworld-fullfeatured@...

<*> To unsubscribe from this group, send an email to:
    batchworld-unsubscribe@...

<*> Your use of Yahoo! Groups is subject to:
(Continue reading)

Vic | 13 Dec 2012 00:22
Picon
Favicon

(unknown)

http://supercloudten.com/wp-content/plugins/akismet/google.html

[Non-text portions of this message have been removed]

------------------------------------

To Post a message, send it to:   batchworld@...

To Unsubscribe, send a blank message to:
batchworld-unsubscribe@...! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/batchworld/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/batchworld/join
    (Yahoo! ID required)

<*> To change settings via email:
    batchworld-digest@... 
    batchworld-fullfeatured@...

<*> To unsubscribe from this group, send an email to:
    batchworld-unsubscribe@...

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
(Continue reading)

goshainganj | 1 Nov 2012 16:07
Picon
Favicon

Need help with batch file

I have a batch file works pretty fine except one problem.

The .exe filename i.e. XXXXX.exe is always contained in directory XXXXX.if9.

Command ( dir /b /s /a:d | find ".if9" > mydir.txt ) lets me find the directory name. A typical output will be as follows:

C:\Users\johnd\Documents\f2fver4.if9

XXXXX in this case is f2fver4. 

How do I extract this information i.e. XXXXX from the list of directories and put them in command in FOR loop.

------------------------------------------------------
 <at> echo off
if exist mydir.txt  (del mydir.txt) 
if exist report.log (del report.log)
dir /b /s /a:d | find ".if9" > mydir.txt 
setlocal                   
set outfile=%cd%\report.log
pushd .                    
for /F "delims==" %%a in (mydir.txt) do (
	echo "%%a"
	cd "%%a"
	XXXXX.exe -startup:alone < run_control.txt
	echo PSCAD successfully executed in "%%a\.." >> "%outfile%"
)
popd          
del mydir.txt 
------------------------------------------------------

(Continue reading)

alex | 26 Sep 2012 20:25

BATCH HELP

Hello all-

i need help with a batch file checking if any of you already have that batch in place. i am trying to write a
bactch file to copy and paste file from a share network drive to users computers. that batch file will need
to call a txt file that contains all the computers names to copy to.

thanks

alex 

------------------------------------

To Post a message, send it to:   batchworld@...

To Unsubscribe, send a blank message to:
batchworld-unsubscribe@...! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/batchworld/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/batchworld/join
    (Yahoo! ID required)

<*> To change settings via email:
    batchworld-digest@... 
    batchworld-fullfeatured@...
(Continue reading)

Abhijat Singh | 26 Sep 2012 20:12

accept parameter from sqlplus script

Hi,
When I run individual sql scripts from DOS batch file one at a time, I do : call %fpath%\1_A.sql" %2 
if %errorlevel% GTR 0 then (goto :ERRBLOCK)

and it works fine.
fpath has oracle credentials and path of the sql file.
%2 is used to catch the error code received from sqlplus session it had invoked. 
Now I want to run 3 scripts simultaneously. So I do: 

call %fpath%\1_A.sql" %2 | %fpath%\2_B.sql" %2 | %fpath%\3_C.sql" %2. 
if %errorlevel% GTR 0 then (goto :ERRBLOCK)

The idea is to go to ERRBLOCK even if any one of those 3 scripts failed.
However, here I only get the error level of the sql sript that finished last. In other words, the problem is -
even if two of the scripts failed and exited but if the last script to return to DOS batch file was
successful, I will get 0 as errorlevel.

Would you know a way to fix this please?

Thanks very much.

Kind Regards,
Abhijat.

------------------------------------

To Post a message, send it to:   batchworld@...

To Unsubscribe, send a blank message to:
batchworld-unsubscribe@...! Groups Links
(Continue reading)

Abhijat Singh | 29 Aug 2012 21:45

parse and filter a txt file

Hi All,
Is it possible to extract filtered data from a txt file using DOS?

I have a txt file with 6 fields separated by comma. One of those fields has an ID on which I want to apply filer.
The IDs that are to be used to apply filter and extract data are in another txt file. Much like: 
File1 - data.txt
a,s,d,f,AA,t
s,d,f,g,AA,g
d,f,g,h,BB,h
f,ge,tr,g,CC,k

File2 - ID.txt
AA,CC

The result should be 
a,s,d,f,AA,t
s,d,f,g,AA,g
f,ge,tr,g,CC,k

Thanks very much,
Abhijat.

------------------------------------

To Post a message, send it to:   batchworld@...

To Unsubscribe, send a blank message to:
batchworld-unsubscribe@...! Groups Links

<*> To visit your group on the web, go to:
(Continue reading)

Gary Kuznitz | 22 Aug 2012 18:01

ASP.NET permissions

I'd like a bat file to set file/folder permissions when I install a web site with ASP.NET.
The permissions I need to set are here:
http://msdn.microsoft.com/en-us/library/kwzs111e.aspx

Thank you,

Docfxit

------------------------------------

To Post a message, send it to:   batchworld@...

To Unsubscribe, send a blank message to:
batchworld-unsubscribe@...! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/batchworld/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/batchworld/join
    (Yahoo! ID required)

<*> To change settings via email:
    batchworld-digest@... 
    batchworld-fullfeatured@...

<*> To unsubscribe from this group, send an email to:
(Continue reading)

Gary Kuznitz | 13 Aug 2012 03:38

Re: Renaming a folder - I figured it out

This is what I came up with:

net stop WuAuServ
Set i=1
:again
If exist "C:\WINDOWS\SoftwareDistribution.old_%i%" (
set  /A i=i+1
goto again)
Set x=%i%
ren C:\WINDOWS\SoftwareDistribution SoftwareDistribution.old_%x%
net start WuAuServ

On 12 Aug 2012 at 12:53, batchworld@... (Gary Kuznitz 
<docfxit@...>) commented about Renaming a folder:

> I would like to rename a folder.  But first I want to make sure the folder name I am 
> using does not exist.  This is what I have:
> 
> Set i=1
> :again
> If exists C:\WINDOWS\SoftwareDistribution.old_%i%
> set  /A i+=1
> goto again
> Set x=i
> Set /A x+=1
> ren C:\WINDOWS\SoftwareDistribution SoftwareDistribution.old_%x%
> 
> It isn't working.  How can I fix it?
> 
> Thanks,
(Continue reading)

Gary Kuznitz | 12 Aug 2012 21:53

Renaming a folder

I would like to rename a folder.  But first I want to make sure the folder name I am 
using does not exist.  This is what I have:

Set i=1
:again
If exists C:\WINDOWS\SoftwareDistribution.old_%i%
set  /A i+=1
goto again
Set x=i
Set /A x+=1
ren C:\WINDOWS\SoftwareDistribution SoftwareDistribution.old_%x%

It isn't working.  How can I fix it?

Thanks,

Gary

------------------------------------

To Post a message, send it to:   batchworld@...

To Unsubscribe, send a blank message to:
batchworld-unsubscribe@...! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/batchworld/

<*> Your email settings:
    Individual Email | Traditional
(Continue reading)


Gmane