cmd

How to use extendscript to open another application?

家住魔仙堡 提交于 2021-02-11 17:08:20
问题 I'm trying to undertand if/how I can open an external program from After Effects by using extendscript to send a command through the cmd line (system.callSystem), but can't work it out... For example, to open a version of Premiere Pro from command line I can use the direct path: cd C:\Program Files\Adobe\Adobe Premiere Pro CC 2019\ && "Adobe Premiere Pro.exe" but can't get paths to be read through extendscript, eg I tried: system.callSystem("cmd.exe /c \"cd C:\Program Files\Adobe\Adobe

Execute CMD commands using python

拥有回忆 提交于 2021-02-11 15:55:48
问题 what i'm trying to do is create a server and a client, the server being able to execute CMD commands. I managed to do the server-client communication but i have problems at controlling the command prompt using python. My current code is: import time import _thread import winpexpect class CommandPrompt(object): def __init__(self): self.cmd = winpexpect.winspawn('cmd.exe') def read(self): while True: if self.cmd.readline(): print(self.cmd.before) def send(self,usinput): self.cmd.sendline

How do I configure a terminal to read UTF-8 characters?

安稳与你 提交于 2021-02-11 14:26:32
问题 I am working on a project which accepts user input via the command line. I am using up-to-date Windows 10 and (after much running around in circles...) I am aware that it is notoriously bad when it comes to handling UTF-8 characters. Consequently, I looked to VS Code and the integrated terminal (PowerShell) to perform input into the program. Sadly, the terminal seemed unable to accept accented UTF-8 characters such as "ë". I then did more research and configured the settings.json for VS Code

Convert list of jpgs to pdf with ghostscript

旧城冷巷雨未停 提交于 2021-02-11 12:54:24
问题 GhostScript v9.10 64bit version I'd like to take a list of jpgs and turn them into a single pdf file where each image has its own page. I tried to follow the method used here: Using Ghostscript to convert JPEG to PDF but I'm getting errors. Here is my command: C:\Temp>gswin64c -sDEVICE=pdfwrite -o cafb0173-f4be-47a8-a39e-f479ca0a4d09.pdf viewjpeg.ps -c 5c520934-461a-44f3-9f00-9fdc9fe666c1.jpg Here is what I get: GPL Ghostscript 9.10 (2013-08-30) Copyright (C) 2013 Artifex Software, Inc. All

Shell Command in VBA Execution

丶灬走出姿态 提交于 2021-02-11 12:42:33
问题 I'm trying to run two lines of commands using shell. I haven't been able to find a good source on how to actually execute shell in VBA. So far, I have been able to figure out how to open a specific directory. Sub shellCMD() Shell ("cmd.exe /k CD\Users\n808037\Desktop\OTHER") End Sub This will at least lead me to the directory where I need to go. However, now that I've gotten to the directory I need to go, I need to execute a command after. That is copy *.csv merged.csv How do I do this in

Running a cmd file without GUI popping up

断了今生、忘了曾经 提交于 2021-02-11 12:38:24
问题 I'm running a list of commands in a file: matlab -nodesktop -nodisplay -nojvm -nosplash ............. xwin32 --session .................... I would like to have them run without the GUI popping up in Windows and more of all I would like the command prompt GUI not to pop up, anyone have any idea how to do it? tnx 回答1: Best you can do on Windows is: batchScript.cmd start /B /MIN matlab.exe -nodesktop -noFigureWindows -nosplash ^ -r "surf(peaks); saveas(gcf, 'output.eps'); quit;" You can add the

Python .pyw extension does not work

与世无争的帅哥 提交于 2021-02-11 01:32:54
问题 I'm trying to run a program without cmd window pop-up when I double click it or when I make it exe. So I wanted to save it as .pyw extension but when I double click to script, shell can't run it. It says I need to select the program to run it or search online. How can I fix this? Windows- Python 3.4 It was okay in 3.5 when I use .pyw extension. First time I see this problem. 回答1: I always have this problem whenever I reinstall Python. Very simple fix (at least on Windows): 1) Create a .pyw

Embed powershell script in VBA macro and run it from there

北慕城南 提交于 2021-02-10 18:41:34
问题 I am trying to write this neat little bit of code and am having some massive issues with the last bit of it. So the intention was to write a code that would go into all the .zip files in a folder, find a folder in each by name, go inside, find a file ending in "_nl.inp" and copy it outside the archive. While digging for ideas as far as VBA goes I could only find how to unzip the entire archive and not just pinpoint the file and pull i out. But I managed to find how to do this in powershell

Embed powershell script in VBA macro and run it from there

房东的猫 提交于 2021-02-10 18:40:51
问题 I am trying to write this neat little bit of code and am having some massive issues with the last bit of it. So the intention was to write a code that would go into all the .zip files in a folder, find a folder in each by name, go inside, find a file ending in "_nl.inp" and copy it outside the archive. While digging for ideas as far as VBA goes I could only find how to unzip the entire archive and not just pinpoint the file and pull i out. But I managed to find how to do this in powershell

package org.apache.poi.ss.usermodel does not exist

痴心易碎 提交于 2021-02-10 17:47:03
问题 I tried to compile a java file using CMD but I got error of these. I have follow other solutions on stackoverflow but still not solved. C:\Users\User\eclipse-workspace\Calendar_v1\src\cal>javac ShiftSetting.java ShiftSetting.java:7: error: package org.apache.poi.ss.usermodel does not exist import org.apache.poi.ss.usermodel.Cell; ^ ShiftSetting.java:8: error: package org.apache.poi.ss.usermodel does not exist import org.apache.poi.ss.usermodel.DataFormatter; ^ ShiftSetting.java:9: error: