Skip to main content
Known Participant
April 18, 2021
Question

Run Photoshop from PC Command Prompt - relative argument reference fails

  • April 18, 2021
  • 1 reply
  • 3017 views

I'm having a problem running photoshop version: 22.3.0 from the command prompt using relative references.

 

Using absolute references to argument file works:

D:> "C:\Program Files\Adobe\Adobe Photoshop 2021\Photoshop.exe" "D:/Pictures/Coaster/2011-10-14_0164.jpg"

 

Changing the directory to the folder with the argument file does not work:

D:\Pictures\Coaster>"C:\Program Files\Adobe\Adobe Photoshop 2021\Photoshop.exe" "2011-10-14_0132.jpg"

 

I'm getting the error 'Could not open "2011-10-14_0132.jpg" because of a disk error'.

This topic has been closed for replies.

1 reply

JJMack
Community Expert
Community Expert
April 18, 2021

I'm running Windows 10 which PS 2021 requires and have updated PS 22.3 to 22.3.1 and do not have the problem report.  Photoshop starts and opens the passed image.

 

 

JJMack
hillrgAuthor
Known Participant
April 18, 2021

Thanks for the reply.  Note I said this works as an absolute reference.

Try it as a relative reference and see if it still works.:

 

E:

CD "My files\Pictures\John

"C:\Program Files\Adove\Adobe Photoshop 2021\Photoshop.exe" "OldFart.jpg"

JJMack
Community Expert
Community Expert
April 18, 2021

Something strange is going in this area.

while this 

E:

CD "My files\Pictures\John

"C:\Program Files\Adove\Adobe Photoshop 2021\Photoshop.exe" "OldFart.jpg"

does not work and we feel it should

the following  should not  work but does

E:

CD "My files\Pictures\John

"C:\Program Files\Adove\Adobe Photoshop 2021\Photoshop.exe" "E:\OldFart.jpg"

 

also strange we know works

C:

"C:\Program Files\Adobe\Adobe Photoshop 2021\Photoshop.exe" "E:\My Files\Pictures\John\OldFart.jpg"

but 

C:

"C:\Program Files\Adobe\Adobe Photoshop 2021\Photoshop.exe" "C:\My Files\Pictures\John\OldFart.jpg"

did not work but should have

Photoshop loaded  but nothing opened in it it was just ready for work and  I could open OldFart

the young stud is  gone

 

JJMack