Search found 9 matches

by mwatsondhs
27 Jan 2015 14:30
Forum: DOS Batch Forum
Topic: Run multiple .bat from main .bat
Replies: 2
Views: 2393

Run multiple .bat from main .bat

Please forgive me if this is a stupid question, I'm new at this. I have pieced together the code below and it works for one .pdf file. But, it never gets to the second .bat file. Can someone please explain to me what I'm doing wrong. I'll be honest I do not understand some of this code, I mostly got...
by mwatsondhs
23 Jan 2015 12:56
Forum: DOS Batch Forum
Topic: Call .bat from another machine
Replies: 8
Views: 5351

Re: Call .bat from another machine

oh sorry I guess I don't know what im doing
by mwatsondhs
23 Jan 2015 10:09
Forum: DOS Batch Forum
Topic: Call .bat from another machine
Replies: 8
Views: 5351

Re: Call .bat from another machine

Squashman,

The pause did the trick. I guess it was calling the other batch file before it got a chance to switch
directories. Thanks for all of your help. I owe you. If you ever have and SQL questions let me know.

Mark
by mwatsondhs
23 Jan 2015 08:17
Forum: DOS Batch Forum
Topic: Call .bat from another machine
Replies: 8
Views: 5351

Re: Call .bat from another machine

I tried cd and chdir with and without /D and it still doesn't work.
by mwatsondhs
23 Jan 2015 07:47
Forum: DOS Batch Forum
Topic: Call .bat from another machine
Replies: 8
Views: 5351

Call .bat from another machine

When I run the code below it goes to the rename function but it never changes the directory. P: is on a different machine and I think that this is the problem. Is this a permissions problem or a coding problem? Any thoughts? Thanks, Mark @echo off setlocal enabledelayedexpansion FOR /F "delims=...
by mwatsondhs
20 Jan 2015 14:50
Forum: DOS Batch Forum
Topic: VB or batch file
Replies: 6
Views: 4241

VB or batch file

I have a txt file that looks like this: 201501,20140101_20141231 201502,20140201_20150131 201503,20140301_20150228 201504,20140401_20150331 201505,20140501_20150430 201506,20140601_20150531 201507,20140701_20150630 201508,20140801_20150731 201509,20140901_20150831. Would it be easier to just write a...
by mwatsondhs
13 Jan 2015 15:12
Forum: DOS Batch Forum
Topic: Copy files with dynamic names
Replies: 5
Views: 4040

Re: Copy files with dynamic names

Squashman,

Thank You very much, that worked perfectly.

Mark
by mwatsondhs
13 Jan 2015 13:41
Forum: DOS Batch Forum
Topic: Copy files with dynamic names
Replies: 5
Views: 4040

Re: Copy files with dynamic names

Just copying .pdf files from a report server to a shared network drive. The timestamp is written into the file name and
only need to copy the latest dated file. There will be several files that need to be copied like this but if you could show me an
example for 1 I could do the others.
by mwatsondhs
13 Jan 2015 10:04
Forum: DOS Batch Forum
Topic: Copy files with dynamic names
Replies: 5
Views: 4040

Copy files with dynamic names

I need to automate the following process: A Crystal report is run on a monthly basis which creates the following file each month: sls316_2015-01-06-04-12-37.pdf where 2015-01-06-04-23-37 is the date-time the pdf file was created. Each month the date time changes and I need a batch script to copy thi...