Ask Your Question
3

How can I convert an AnyDesk CMD file to a PS1 file?

asked 2021-08-04 11:00:00 +0000

qstack gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2023-02-06 07:00:00 +0000

david gravatar image

There is no direct way to convert an AnyDesk CMD file to a PS1 file as they are written in different scripting languages. AnyDesk CMD files are written in Windows command prompt scripting language while PS1 files are written in PowerShell scripting language.

However, you can open the AnyDesk CMD file in a text editor, copy the commands and paste them into a new PS1 file. Then, modify the commands to match the syntax of PowerShell.

For example, to run a command in a CMD file:

dir C:\Users

You would need to modify it for the PowerShell syntax as follows:

Get-ChildItem -Path C:\Users

Repeat this process for all commands in your AnyDesk CMD file and save the PS1 file.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2021-08-04 11:00:00 +0000

Seen: 8 times

Last updated: Feb 06 '23