Jump to content
Fórum Script Brasil
  • 0

.Bar, Problemas ao atribuir uma variável.



Boa Tarde, 

Não consigo atribuir o valor da variável %%x a BaseDir, segue código abaixo.

onde estou errando.

@echo off
setlocal EnableDelayedExpansion
set PDFtk="pdftk.exe"

for /F "delims=" %%x in ('dir /b /o:g /ad ') do (
    echo %%x
    SET BaseDir=%%x
    FOR /R "%BaseDir%" %%G in (.) DO (
         echo %%G
         "%PDFtk%" "%%~G\*.pdf" cat output "%BaseDir%.pdf"
         Pushd %%G



Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Forum Statistics

    • Total Topics
    • Total Posts
  • Create New...