Software-OK
≡... News | ... Home | ... FAQ | Impressum | Contact | Listed at | Thank you |

  
HOME ► Faq ► FAQ - DesktopOK ► ««« FAQ 04 / 48 »»»

Command line option to save or load the icons layout directly from a file?


Yes, you can use command line to save or load the desktop icons layout directly from a file! From DesktopOK 1.57 an higher.



 

1.) ... The examples to load / save the icon layouts via program parameters!
2.) ... With taskkill / F / IM the save process named "» DesktopOK_Exit «" does not take place!

3.) ... Advantages and disadvantages of loading the desktop layout via the command line!
4.) ... Pitfalls when loading and saving the desktop layout via the command line!




1.) The examples to load / save the icon layouts via program parameters!

For example SAVE TO FILE:
DesktopOK.exe /save /silent c:\icon_lay.dok
OR:
DesktopOK.exe /save "c:\long path name\icon_lay.dok"

Example LOAD FROM FILE:
DesktopOK.exe /load /silent c:\icon_lay.dok

/silent = don't show error messages 

New from ver 5.65
/spacing = save icon spacing
/size = save icon size

From version 6.51!
/report = Displays a list of unresolved / found symbols
in conjunction with /load
For example: DesktopOK.exe /load /report c:\icon_lay.dok

Info:
The file name must end with *.dok. This is a teeny overwrite protection for the other system files.


From Version 6.99
(date, time and resolution)
/save c:\save_dok\_date_time_res_.dok
or (date and time)
/save c:\save_dok\_date_time_.dok

From Version 7.11 silent install
/silent -?install

See: ... Save the icons layout with date and time format on the command line!
(Image-1) Save the desktop icons layout on all Windows OS!
Save the desktop icons layout on Windows-10!
-
▲ Back to the top ▲


You can save the desktop icons layout not only in Windows 10, you can also save the desktop icons on Windows Server 2016 and 2012.

Info: Windows allocates on many computers the desktop icons without asking and randomly reat. Especially on large screens and with many neatly arranged desktop icons that is pretty annoying. But fortunately there is a remedy. Here are the solution to keep the icons in the right place.

The problem with the unwanted rearrangement of the desktop icons has been known for many versions of Windows . Whether XP, Windows Vista, Windows 7 or Windows 10 . Tumbling Desktop Icons are almost as old as Windows. It's amazing that Microsoft still has not found a reliable solution for it. After all, the desktop is the most widely used Windows component.

Info:

It's easy to save or load the icons layout directly from the command line or cmd. The solution is not only written as a instruction for Windows 10, you can use this example to create via CMD command line to save the icon positions on the desktop via cmd  as a solution even on earlier versions of Microsoft's Windows operating systems, whether it is a Windows desktop computer, tablet PC, Surface Pro and Go, or even a server operating system, it has been tested and successfully verified at all .



-
▲ Back to the top ▲


2.) With taskkill / F / IM the save process named "» DesktopOK_Exit «" does not take place!





User request:

If I exit the DesktopOK program with a mouse click, it will save an icon according to my program settings with the name "» DesktopOK_Exit «". I would have liked to have done exactly the same thing with a batch command line. If I use the command in the batch:
 
"taskkill / F / IM DesktopOK_x64.exe / T"
 
use, the program is closed, but the save process named "» DesktopOK_Exit «" does not take place.
 
It should be something with task program exit + parameters ?? In the console, the text should be similar. 
 


 

Answer:

Please use ►► program aguments in Desktop OK 

Task-Kill Kills the program and does not send a program terminate command!

Described here: ►► Use Taskkill correctly and sensibly with the Cmd.exe with examples  



3.) Advantages and disadvantages of loading the desktop layout via the command line!

Loading the desktop layout using DesktopOK from the command line has both advantages and disadvantages:


Advantages:


1. Automation:

Using the command line, desktop layouts can be loaded automatically, which is particularly useful if you need to switch between different layouts regularly or want to do this on a specific schedule.

2. Speed:

Loading the desktop layout from the command line can be faster than loading it manually from the UI because it is done directly and without additional user input.

3. Scriptability:

Using the command line allows DesktopOK functionality to be integrated into scripts or automated workflows, which can increase efficiency and flexibility.

Disadvantages:


1. Learning Curve:

Using the command line may require some learning curve, especially for users who are unfamiliar with command line syntax. This can be time-consuming at first.

2. Error susceptibility:

When entering commands manually, there is a possibility of typos or incorrect parameters, which can lead to errors or unexpected behavior.

3. Limited UI:

Unlike using the DesktopOK UI from the command line, you may have limited visibility and control over the loading process as it occurs in the background.

Info:

Overall, using the command line to load the desktop layout with DesktopOK can provide many benefits, especially in terms of automation and efficiency, but may require some time and effort to get used to and avoid potential errors.



-
▲ Back to the top ▲


4.) Pitfalls when loading and saving the desktop layout via the command line!

There are a few potential pitfalls to be aware of when loading the desktop layout from the command line using DesktopOK:


1. Incorrect command syntax:

A common danger is incorrect use of command syntax. These can include typos, incorrect parameters, or missing quotation marks around paths with spaces. It is important to use the exact syntax according to the program documentation.

2. Unexpected behavior:

Incorrect use of command line parameters or specifying incorrect file paths can result in unexpected behavior. This can cause the layout to not load properly or even lead to errors.

3. Permission issues:

Depending on where the files you want to load are located, you may encounter permission issues. For example, if the command accesses files in a protected system folder, administrative privileges may be required.

4. Compatibility Issues:

Command line options may vary depending on the version of DesktopOK. It's important to make sure the version you're using supports the options you want, especially if you're creating scripts or automated workflows that rely on specific features.

5. Lack of feedback:

Since desktop layout loading occurs via the command line in the background, it can be difficult to get immediate feedback or error messages if something goes wrong. This can make troubleshooting difficult, especially if the script or command is used in an automated process.

Info:

To minimize these pitfalls, it is important to carefully review the command syntax, ensure that all necessary permissions are present, and run tests to ensure that the desired behavior is achieved.



-
▲ Back to the top ▲




FAQ 4: Updated on: 17 April 2024 13:02 Windows


► ► ► ► ... more information about the software DesktopOK     

DesktopOK

Do you want to restore the icons on Windows start / login?


You can start DesktopOK with Windows and Auto Restore the Desktop-Icon Layout at Windows Start, and it does not matter whether it is Windows 10 or
DesktopOK

What does "punch the icons" in Desktop-OK on Windows?


It is / anti sort, chaos, unsort, confused, disorder and it does not matter whether it is Windows 10, 8.1 or Microsoft Windows Server OS
DesktopOK

Has DesktopOK Save option for correct layout naming at multi-screens?


Yes, DesktopOK has this save option for the correct layout naming for multi-screens and virtual desktop, via menu, menu-point Save Options. Info: At 1.75
DesktopOK

Is there a way i can stop it from saving the file to my desktop?


At DesktopOK 1.71 it is possible to save the DesktopOK settings and Desktop Icons Layout in The Windows Registry  Similarly, one can now optionally rename
DesktopOK

How to download the English version of 64 bit Desktop-OK?


It is very easy to switch / change the Language in DesktopOK to English or to Other Language for Windows 11, 10, etc.. Is the same version or download. Please
DesktopOK

I have set it to 'Keep last 4' but it doesn't so autosave the icons!


You must activate the Auto-Save feature in DesktopOK , and it does not matter whether it is, Windows 11, 10, 8.1, or MS Server 2019, OS  Info: Easy
DesktopOK

How can i save and load the desktop icon's position from a file?


It is easy to save and load the desktop icons position from a file, and it does not matter whether it is Windows 11, 10, 8.1, or MS Server OS Content:

»»

  My question is not there in the FAQ
Asked questions on this answer:
  1. The tool is basically perfect - thank you! The only thing I miss now and then is to call Desktop-OK via the command line and load a certain configuration via batch file.
  2. Could Desktop-OK , or any programs you know of, save the icons arranged manually in a folder as you do on the desktop?
  3. I want to use DesktopOK to organize desktop icons on multiple computers via a Powershell script. I would like to just run the script and have it organize the icons without me having to do anything manually. Is this possible? Maybe a Powershell argument I'm not trying?
  4. I know that I start the program with a simple DesktopOK.exe but not how I let it automatically load the last memory or how I can run this whole process in a hidden way! Would be very nice of you if you could help me !?
  5. Is there a possibility to restore the saved icon post positions via CMD / batch?
  6. I am looking for a way to restore my icon layout from a batch file without having to use the desktop window. Is there a way to do this?
  7. Is there a listing of the command line parameters? Can I use the command line parameter to restore the icon arrangement (Name: Standard)?
  8. Could you possibly tell me how I can call the program in a batch script and load the last storage?
  9. I would like to integrate the program into a batch because I also start some other things with this batch. Among other things, a program that shows me the desktop icons as a list.
Keywords: desktopok, command, line, option, save, load, icons, layout, directly, from, file, windows, 10, 8.1, seven, server, Questions, Answers, Software




  

  + Freeware
  + Order on the PC
  + File management
  + Automation
  + Office Tools
  + PC testing tools
  + Decoration and fun
  + Desktop-Clocks
  + Security

  + SoftwareOK Pages
  + Micro Staff
  + Freeware-1
  + Freeware-2
  + Freeware-3
  + FAQ
  + Downloads

  + Top
  + Desktop-OK
  + The Quad Explorer
  + Don't Sleep
  + Win-Scan-2-PDF
  + Quick-Text-Past
  + Print Folder Tree
  + Find Same Images
  + Experience-Index-OK
  + Font-View-OK


  + Freeware
  + BlankAndSecure
  + AlwaysMouseWheel
  + NewFileTime
  + DesktopClock3D
  + PointerStick
  + DesktopImages3D
  + WinPing
  + GetPixelColor
  + StressMyPC
  + PAD-s


Home | Thanks | Contact | Link me | FAQ | Settings | Windows 10 | gc24b | English-AV | Impressum | Translate | PayPal | PAD-s

 © 2025 by Nenad Hrg softwareok.de • softwareok.com • softwareok.com • softwareok.eu


► Change the default location for scanned documents! ◄
► Why is Windows 8.1 x64 bigger than x32 on HD and Greater on DVD? ◄
► Why another countdown APP for Android and Windows? ◄
► COMODO CA Limited Problem May 2019 Certifikate! ◄


This website does not store personal data. However, third-party providers are used to display ads,
which are managed by Google and comply with the IAB Transparency and Consent Framework (IAB-TCF).
The CMP ID is 300 and can be individually customized at the bottom of the page.
more Infos & Privacy Policy

....