如何复制用户使用OpenDialog选择的程序。 [英] How do I copy a program that the user selected using the OpenDialog.

查看:88
本文介绍了如何复制用户使用OpenDialog选择的程序。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有人打开图像文件,然后程序预览它。我明白了。但现在我希望程序将它复制到一个新目录。我希望它进入一个名为"res"的文件夹。我也想使用XCOPY命令来执行此操作。

I have someone open up an image file, and then the program previews it. I got that down. But now I want the program to copy it to a new directory. I want it to go into a folder called "res". I also want to use the XCOPY command to do this.

推荐答案



FWIW,在大多数语言中,你可以使用shell命令发出批处理文件命令,如XCOPY。

本论坛适用于有关Visual Studio文档的问题。如果您在相应的语言论坛中发布,您的编程问题将有更好的机会获得答案。由于您没有指定您正在使用的语言,我将为您列出一些主要语言的链接:

Hi,

FWIW, in most languages, you can use a shell command to issue batch file commands like XCOPY.

This forum is meant for questions regarding documentation for Visual Studio. Your programming question will have a better chance of getting answered if you post it in the appropriate language forum.  Since you didn't specify which language you're using, I'll list links to a few of the major ones for you:

视觉基本
Visual C#
Visual C ++


HTH,

Visual Basic
Visual C#
Visual C++

HTH,


这篇关于如何复制用户使用OpenDialog选择的程序。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆