Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Not able to understand or execute DOS Command
Message
From
14/12/2013 17:31:51
 
 
To
14/12/2013 12:51:19
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01590243
Message ID:
01590250
Views:
60
Perhaps it might be helpful to try to understand the situation at hand and perhaps try a few commands and get a better understanding of the environment you're dealing with. Rather than trying to go straight to the solution, it might be helpful to test out portion of command to see if that is working as expected:

For example, you can try entering (and please mind the upper/lower case on reference to %F ):
for /r e:\sample %F in (*.pdf) do echo "%F"
and see if it generates list of the PDF files located in the E:\sample folder

Now try the following (and please mind upper/lower case on the reference to %F and %~dpnF ) :
for /r e:\sample %F in (*.pdf) do echo "%~dpnF"
does this generate similar results as previous example? (file extension has been stripped)

>I have a Directory Named as SAMPLE in E:\SAMPLE. Inside Sample Folder I have many subfolders say A, B,C etc. Inside those subfolders I have thousnads of PDF files whic I need to convert to PS using an application. PDF2Vec.exe.
>
>PDF2Vec.exe is Located in C:\PDF2VEC\PDF2Vec.exe
>My PDF Files are Inside E:\SAMPLE
>
>The Google and support service suggest the following Commands to convert all PDF at once in PS.
>
>for /r E:Sample %F in (*.pdf) do "C:VeryPDFps2pdf.exe" -pdf2ps "%F" "%~dpnF.ps"
>
>If you wish convert all PDF files to PS files by pdf2vec.exe application, please run following command line,
>
>for /r E:Sample %F in (*.pdf) do "C:VeryPDFpdf2vec.exe" "%F" "%~dpnF.pdf"<Pre>
>
>
>
>I tried many combinations of the same on C prompt but could not succeed. Can anyone please tell me what SPECIFIC COMMAND I Have to write on C: at Dos Prompt OR How do I use it from inside VFP
>
>Regards
Previous
Reply
Map
View

Click here to load this message in the networking platform