Search found 6 matches
- 30 Jul 2016 18:33
- Forum: DOS Batch Forum
- Topic: Automated Copy and Run Script
- Replies: 3
- Views: 3440
Automated Copy and Run Script
Hi, my name is Ignacio Cabero. I am new to batch programming. I want to create a program that copies an executable, pastes it in the users c:\ drive, and then executes it. Some information: I plan on distributing this to my friends via the internet. They visit mediafire and download my file, which c...
- 22 Jul 2016 13:05
- Forum: DOS Batch Forum
- Topic: Simple "Copy/Run" Command
- Replies: 9
- Views: 6522
Re: Simple "Copy/Run" Command
ShadowThief wrote:Yeah, don't try to run programs directly out of C:\
You can run it from any user's profile by sayingCode: Select all
start "" "%userprofile%\test.exe"
Thank you, this really helped.
What about running as administrator?
Thank you.
- 22 Jul 2016 11:45
- Forum: DOS Batch Forum
- Topic: Simple "Copy/Run" Command
- Replies: 9
- Views: 6522
Re: Simple "Copy/Run" Command
You're missing a " in your code. Three, arguably, since the path should also be surrounded by quotes. start "" "C:\test.exe" Okay, thank you. Now is there any way so that I don't have to run as administrator? or is that only because I am trying to run a program in c:/ ?
- 22 Jul 2016 11:31
- Forum: DOS Batch Forum
- Topic: Simple "Copy/Run" Command
- Replies: 9
- Views: 6522
Re: Simple "Copy/Run" Command
Why does it need to be copied to the root of the System Drive? Why not just make a directory off the root of the system drive and copy it to that directory and then execute it? If I understand you, you mean create a pathway, like "c:\Users\username\Desktop\*", for example? The problem wit...
- 22 Jul 2016 10:29
- Forum: DOS Batch Forum
- Topic: Simple "Copy/Run" Command
- Replies: 9
- Views: 6522
Re: Simple "Copy/Run" Command
Why does it need to be copied to the root of the System Drive? Why not just make a directory off the root of the system drive and copy it to that directory and then execute it? If I understand you, you mean create a pathway, like "c:\Users\username\Desktop\*", for example? The problem wit...
- 22 Jul 2016 10:19
- Forum: DOS Batch Forum
- Topic: Simple "Copy/Run" Command
- Replies: 9
- Views: 6522
Simple "Copy/Run" Command
Hello, my name is Ignacio Cabero. I am trying to run a simple program that copies an executable file from my "E:\" drive to my "C:\" drive, and then run that executable. I have no experience with batch. Seriously. I come from a python and C++ background, but I wanted to experimen...