---
title: "DoyinSoft Technologies (@doyinsoft) | Hashnode"
description: "Software Company. Read the latest articles by DoyinSoft Technologies on Hashnode."
url: "https://hashnode.com/@doyinsoft"
---

@doyinsoft

# DoyinSoft Technologies

@doyinsoft · Lagos, NG · Joined November 2020

Software Company

[Website](https://doyinsoft.com/)

## Comments

[Always copy paths from the window explorer text box chougle saud](https://hashnode.com/posts/my-little-automation-script/5fd5ac10f60e3973bae6bca8/comment/5fe05f76b78ac62dff80f0c7#reply-5ffc5605aa5c467fe155ae54)

Reply · Article · Jan 11, 2021 · [My Little Automation Script](https://hashnode.com/posts/my-little-automation-script/5fd5ac10f60e3973bae6bca8)

[chougle saud So I decided to enhance the codes making it possible to type in the desired path upon execution of the script: you can find the new script below const { exec } = require("child\_process"); const readline = require("readline"); const rl = readline.createInterface({ input: process.stdin, output: process.stdout, }); var fp = ""; rl.question("Enter a Valid Path to Open: ", function (p) { fp = p; main(); rl.close(); }); function main() { launchVSCodeAt(fp); launchTerminalAt(fp); } function launchVSCodeAt(path) { exec(\`cd ${path} && code .\`, (err) => { if (err) console.log(\`failed to launch VSCode at ${path}\`); console.log(\`VSCode launched at ${path}\`); }); } function launchTerminalAt(path) { exec(\`cd ${path} && start cmd\`, (error) => { if (error) console.log(\`failed to launch Terminal at ${path}\`); console.log(\`Terminal launched at ${path}\`); }); }](https://hashnode.com/posts/my-little-automation-script/5fd5ac10f60e3973bae6bca8/comment/5fe05f76b78ac62dff80f0c7)

Comment · Article · Dec 21, 2020 · [My Little Automation Script](https://hashnode.com/posts/my-little-automation-script/5fd5ac10f60e3973bae6bca8)

[chougle saud So I decided to enhance the codes making it possible to type in the desired path upon execution of the script: you can find the new script below const { exec } = require("child\_process"); const readline = require("readline"); const rl = readline.createInterface({ input: process.stdin, output: process.stdout, }); var fp = ""; rl.question("Enter a Valid Path to Open: ", function (p) { fp = p; main(); rl.close(); }); function main() { launchVSCodeAt(fp); launchTerminalAt(fp); } function launchVSCodeAt(path) { exec(\`cd ${path} && code .\`, (err) => { if (err) console.log(\`failed to launch VSCode at ${path}\`); console.log(\`VSCode launched at ${path}\`); }); } function launchTerminalAt(path) { exec(\`cd ${path} && start cmd\`, (error) => { if (error) console.log(\`failed to launch Terminal at ${path}\`); console.log(\`Terminal launched at ${path}\`); }); }](https://hashnode.com/posts/my-little-automation-script/5fd5ac10f60e3973bae6bca8/comment/5fd9e328f9e9d5279a16f2b3#reply-5fe05f1bb78ac62dff80f0bd)

Reply · Article · Dec 21, 2020 · [My Little Automation Script](https://hashnode.com/posts/my-little-automation-script/5fd5ac10f60e3973bae6bca8)

[Interesting, what if I needed it opened at a new path, do I edit the script before every launch?](https://hashnode.com/posts/my-little-automation-script/5fd5ac10f60e3973bae6bca8/comment/5fd9e328f9e9d5279a16f2b3)

Comment · Article · Dec 16, 2020 · [My Little Automation Script](https://hashnode.com/posts/my-little-automation-script/5fd5ac10f60e3973bae6bca8)

[hmm Zahradeen Muazu](https://hashnode.com/posts/python-vs-php-the-war/5fa3335d86603914943d4609/comment/5fa45e1a47631a19e811f621#reply-5fd09a03c94a1b36605ab644)

Reply · Article · Dec 9, 2020 · [Python Vs PHP: THE WAR!!!](https://hashnode.com/posts/python-vs-php-the-war/5fa3335d86603914943d4609)
