Sidebar

Announcement

Ahsay Backup Software

Backup Set Types

Supported Storage

Features in OBM / ACB

Features in CBS

Brand and Customize

License

Documentation

Performance Testing

FAQs and Known Issues

Can't Find What You Need?

public:5233_issue:cmd.exe_was_started_with_the_above_path_as_the_current_directory._unc_paths_are_not_supported._defaulting_to_windows_directory._when_running_a_windows_batch_file_as_a_pre_or_post_backup_command_from_a_network_drive

[V7] ISSUE: “CMD.EXE was started with the above path as the current directory. UNC paths are not supported. Defaulting to Windows directory.” when running a Windows batch file as a pre or post backup command from a network drive

Article ID: 5233
Reviewed: 2017-03-13

Product Version:
AhsayOBM/AhsayACB: 7.3.0.0 to 7.x
OS: Windows

ATTENTION 1st January, 2022: v7 officially End-of-Life [details]

Problem Description

When performing a backup job on AhsayOBM/AhsayACB the following error is shown in the backup log, if a Windows batch file is run as a pre or post backup command from a network drive or UNC path.

No. Type Timestamp Log
* ... ... ...
* info YYYY/MM/DD hh:mm:ss [Pre-Backup-1] xxxx.bat
* warn YYYY/MM/DD hh:mm:ss '\\UNC_PATH\folder\'
* warn YYYY/MM/DD hh:mm:ss [Pre-Backup-1] CMD.EXE was started with the above path as the current directory.
* warn YYYY/MM/DD hh:mm:ss [Pre-Backup-1] UNC paths are not supported. Defaulting to Windows directory.
* warn YYYY/MM/DD hh:mm:ss [Pre-Backup-1] 'xxxx.bat' is not recognized as an internal or external command,
* warn YYYY/MM/DD hh:mm:ss [Pre-Backup-1] operable program or batch file.
* ... ... ...

Cause

Resolution

A workaround for this Windows limitation is to use a batch file located on a local drive along with the pushd and popd commands to launch the batch file on the network drive.

Example:
Batch file: \\192.168.22.41\Production\current\shutdown_database.bat

  1. Create an batch file and save on local machine to execute the batch file on UNC path or network drive.
  2. Call the local batch file (localbatch.bat) in the pre or post backup command in AhsayOBM/AhsayACB.

    localbatch.bat
    echo on
    pushd \\192.168.22.41\Production\current\
    \\192.168.22.41\Production\current\shutdown_database.bat
    popd


Keywords

Pre-command, post-command, UNC, network drive, batch file, popd, pushd, operable program

public/5233_issue/cmd.exe_was_started_with_the_above_path_as_the_current_directory._unc_paths_are_not_supported._defaulting_to_windows_directory._when_running_a_windows_batch_file_as_a_pre_or_post_backup_command_from_a_network_drive.txt · Last modified: 2021/12/16 04:53 by anna.olalia

Page Tools