M
M
mur_steel2020-06-19 13:58:23
Windows
mur_steel, 2020-06-19 13:58:23

How to run a script from another drive?

With the help of the scheduler, a bat file should be launched at the time the computer starts.
And everything would be fine, but it was necessary to transfer all this disgrace to another disk,
and a failure occurs on another disk: because the cd F:\Folder command is not executed

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
Konstantin Tsvetkov, 2020-06-19
@mur_steel

Specify the full path and "working folder".
For example:

@ECHO %0
@ECHO %CD%

Run
5eeca8342cabc777542174.png

It turns out
5eeca85ce2618642554050.png

Y
Yan, 2020-06-19
@Slayer_nn

First you need to go to the desired disk and then use cd
Or write the full path to start in quotes
Or create a symbolic link in place of the folder before transferring the
Linshell extension to help
Or edit the scheduler and run from the working folder, what's the problem?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question